streamsynchronizer: avoid unlikely NULL dereference

This commit is contained in:
Mark Nauwelaerts 2012-01-19 16:40:22 +01:00
parent e82ff60a4c
commit 71f70c98ef

View file

@ -620,7 +620,8 @@ gst_stream_synchronizer_sink_chain (GstPad * pad, GstBuffer * buffer)
GST_STREAM_SYNCHRONIZER_LOCK (self);
stream = gst_pad_get_element_private (pad);
stream->seen_data = TRUE;
if (stream)
stream->seen_data = TRUE;
if (stream && stream->drop_discont) {
buffer = gst_buffer_make_metadata_writable (buffer);
GST_BUFFER_FLAG_UNSET (buffer, GST_BUFFER_FLAG_DISCONT);