mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
pulsesrc: Don't dereference NULL pointers
pa_stream_get_timing_info() can return NULL. Fixes bug #595220.
This commit is contained in:
parent
bb787f1030
commit
317d6e18a2
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue