From bd5fb5c62a77df2d3686245efeb8f5fe727521e8 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Tue, 30 Aug 2011 10:59:30 +0800 Subject: [PATCH] rdpsnd/pulse: add a pointer check. --- channels/rdpsnd/pulse/rdpsnd_pulse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/channels/rdpsnd/pulse/rdpsnd_pulse.c b/channels/rdpsnd/pulse/rdpsnd_pulse.c index af316fb..1b2c594 100644 --- a/channels/rdpsnd/pulse/rdpsnd_pulse.c +++ b/channels/rdpsnd/pulse/rdpsnd_pulse.c @@ -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); -- 2.7.4