mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-02 14:20:06 +00:00
streamsynchronizer: avoid unlikely NULL dereference
This commit is contained in:
parent
e82ff60a4c
commit
71f70c98ef
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue