summaryrefslogtreecommitdiff
path: root/gst/mpegpsmux
diff options
context:
space:
mode:
authorThibault Saunier <thibault.saunier@osg.samsung.com>2017-07-14 09:54:40 -0400
committerThibault Saunier <thibault.saunier@osg.samsung.com>2017-08-03 12:51:13 -0400
commitb76a3f85189183e0c21f85ffc133cda705d1bf7a (patch)
tree868c1dbfd5851fe090053f1df559cf9da0301442 /gst/mpegpsmux
parent571c8bc1fff6af89347b4845a85392c064499d9c (diff)
downloadgstreamer-plugins-bad-b76a3f85189183e0c21f85ffc133cda705d1bf7a.tar.gz
mpegpsmux: Do not dereference a NULL pointer
Diffstat (limited to 'gst/mpegpsmux')
-rw-r--r--gst/mpegpsmux/mpegpsmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mpegpsmux/mpegpsmux.c b/gst/mpegpsmux/mpegpsmux.c
index a2cb2576f..f62749634 100644
--- a/gst/mpegpsmux/mpegpsmux.c
+++ b/gst/mpegpsmux/mpegpsmux.c
@@ -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);