diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-15 10:04:30 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-09-15 10:05:51 +0200 |
commit | 317d6e18a2d6ee0662f59af719063a0e9801ef3c (patch) | |
tree | 90866d9243e4a243dfbdfdf92a7429e335aef4a9 | |
parent | bb787f10309e9b70b1d3f05f0821fa93b6235bbf (diff) | |
download | gstreamer-plugins-good-317d6e18a2d6ee0662f59af719063a0e9801ef3c.tar.gz |
pulsesrc: Don't dereference NULL pointers
pa_stream_get_timing_info() can return NULL.
Fixes bug #595220.
-rw-r--r-- | ext/pulse/pulsesrc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/pulse/pulsesrc.c b/ext/pulse/pulsesrc.c index fa603454e..43ec91e9c 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 |