From: Mark Nauwelaerts Date: Thu, 19 Jan 2012 15:40:22 +0000 (+0100) Subject: streamsynchronizer: avoid unlikely NULL dereference X-Git-Tag: RELEASE-0.11.2~2^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71f70c98efe99aeea191f5c538bd269706928499;p=platform%2Fupstream%2Fgst-plugins-base.git streamsynchronizer: avoid unlikely NULL dereference --- diff --git a/gst/playback/gststreamsynchronizer.c b/gst/playback/gststreamsynchronizer.c index b71dcb305..8b80a6b1d 100644 --- a/gst/playback/gststreamsynchronizer.c +++ b/gst/playback/gststreamsynchronizer.c @@ -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);