bug fix
This commit is contained in:
joy.you 2017-02-08 11:12:04 +08:00 committed by GitHub
parent 6d8969ece6
commit 75ceb36e86

View File

@ -130,7 +130,7 @@ static BOOL tsmf_pulse_open(ITSMFAudioDevice *audio, const char *device)
return FALSE;
}
pa_context_set_state_callback(pulse->context, tsmf_pulse_context_state_callback, pulse);
if(tsmf_pulse_connect(pulse))
if(!tsmf_pulse_connect(pulse))
{
WLog_ERR(TAG, "tsmf_pulse_connect failed");
return FALSE;