mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Minor cleanup
This commit is contained in:
parent
9910b0dc9b
commit
1f8c6a4633
1 changed files with 2 additions and 7 deletions
|
@ -156,14 +156,9 @@ new_fluid_pulse_audio_driver2(fluid_settings_t *settings,
|
|||
&bufattr,
|
||||
&err);
|
||||
|
||||
if(err != PA_OK)
|
||||
if(!dev->pa_handle || err != PA_OK)
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "pa_simple_new() failed with error: %s", pa_strerror(err));
|
||||
}
|
||||
|
||||
if(!dev->pa_handle)
|
||||
{
|
||||
FLUID_LOG(FLUID_ERR, "Failed to create PulseAudio connection");
|
||||
FLUID_LOG(FLUID_ERR, "Failed to create PulseAudio connection, because pa_simple_new() failed with error: %s", pa_strerror(err));
|
||||
goto error_recovery;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue