rdpsnd/pulse: add a pointer check.

This commit is contained in:
Vic Lee 2011-08-30 10:59:30 +08:00
parent 9f98b55087
commit bd5fb5c62a

View File

@ -122,6 +122,8 @@ static void rdpsnd_pulse_stream_success_callback(pa_stream* stream, int success,
static void rdpsnd_pulse_wait_for_operation(rdpsndPulsePlugin* pulse, pa_operation* operation)
{
if (operation == NULL)
return;
while (pa_operation_get_state(operation) == PA_OPERATION_RUNNING)
{
pa_threaded_mainloop_wait(pulse->mainloop);