tsdemux: only free the index array if it exists
Only free the array if it exists. Contains an unrelated indentation fix, courtesy of gst-indent
This commit is contained in:
parent
d04efbd735
commit
ca8ea19cc3
@ -305,8 +305,10 @@ static void
|
||||
gst_ts_demux_reset (MpegTSBase * base)
|
||||
{
|
||||
GstTSDemux *demux = (GstTSDemux *) base;
|
||||
if (demux->index) {
|
||||
g_array_free (demux->index, TRUE);
|
||||
demux->index = NULL;
|
||||
}
|
||||
demux->index_size = 0;
|
||||
demux->need_newsegment = TRUE;
|
||||
demux->program_number = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user