mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-14 02:05:39 +00:00
mpegpsmux: Do not dereference a NULL pointer
This commit is contained in:
parent
571c8bc1ff
commit
b76a3f8518
1 changed files with 2 additions and 2 deletions
|
@ -650,9 +650,9 @@ mpegpsmux_release_pad (GstElement * element, GstPad * pad)
|
|||
gst_buffer_unref (pad_data->codec_data);
|
||||
pad_data->codec_data = NULL;
|
||||
}
|
||||
if (pad_data->stream_id == mux->video_stream_id)
|
||||
mux->video_stream_id = 0;
|
||||
}
|
||||
if (pad_data->stream_id == mux->video_stream_id)
|
||||
mux->video_stream_id = 0;
|
||||
GST_OBJECT_UNLOCK (pad);
|
||||
|
||||
gst_collect_pads_remove_pad (mux->collect, pad);
|
||||
|
|
Loading…
Reference in a new issue