Commit 317d6e18 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

pulsesrc: Don't dereference NULL pointers

pa_stream_get_timing_info() can return NULL.

Fixes bug #595220.
parent bb787f10
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment