summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorDavid Henningsson <gnome.web@epost.diwic.se>2009-09-15 10:01:54 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-09-15 10:05:51 +0200
commitbb787f10309e9b70b1d3f05f0821fa93b6235bbf (patch)
tree8323a4fb418a4649aea516e9b8dde4a6d90703e7 /ext
parentccda7615621f8b1e882d1ce4890923f5198eaf09 (diff)
pulsesink: Don't dereference NULL pointers
pa_stream_get_timing_info() can return NULL. Fixes bug #595220.
Diffstat (limited to 'ext')
-rw-r--r--ext/pulse/pulsesink.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c
index 9b3b1d4d..10fa884f 100644
--- a/ext/pulse/pulsesink.c
+++ b/ext/pulse/pulsesink.c
@@ -545,6 +545,10 @@ gst_pulsering_stream_latency_cb (pa_stream * s, void *userdata)
pbuf = GST_PULSERING_BUFFER_CAST (userdata);
psink = GST_PULSESINK_CAST (GST_OBJECT_PARENT (pbuf));
+ if (!info) {
+ GST_LOG_OBJECT (psink, "latency update (information unknown)");
+ return;
+ }
#if HAVE_PULSE_0_9_11
sink_usec = info->configured_sink_usec;
#else