From: Sebastian Dröge Date: Tue, 15 Sep 2009 08:04:30 +0000 (+0200) Subject: pulsesrc: Don't dereference NULL pointers X-Git-Tag: 1.19.3~509^2~9666 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=317d6e18a2d6ee0662f59af719063a0e9801ef3c;p=platform%2Fupstream%2Fgstreamer.git pulsesrc: Don't dereference NULL pointers pa_stream_get_timing_info() can return NULL. Fixes bug #595220. --- diff --git a/ext/pulse/pulsesrc.c b/ext/pulse/pulsesrc.c index fa60345..43ec91e 100644 --- a/ext/pulse/pulsesrc.c +++ b/ext/pulse/pulsesrc.c @@ -528,6 +528,11 @@ gst_pulsesrc_stream_latency_update_cb (pa_stream * s, void *userdata) info = pa_stream_get_timing_info (s); + if (!info) { + GST_LOG_OBJECT (GST_PULSESRC_CAST (userdata), + "latency update (information unknown)"); + return; + } #if HAVE_PULSE_0_9_11 source_usec = info->configured_source_usec; #else