tsdemux: Don't dereference NULL if flushed before a program was selected
This commit is contained in:
parent
ba114b6b22
commit
11bc356ce7
@ -1249,6 +1249,9 @@ gst_ts_demux_stream_flush (TSDemuxStream * stream)
|
|||||||
static void
|
static void
|
||||||
gst_ts_demux_flush_streams (GstTSDemux * demux)
|
gst_ts_demux_flush_streams (GstTSDemux * demux)
|
||||||
{
|
{
|
||||||
|
if (!demux->program)
|
||||||
|
return;
|
||||||
|
|
||||||
g_list_foreach (demux->program->stream_list,
|
g_list_foreach (demux->program->stream_list,
|
||||||
(GFunc) gst_ts_demux_stream_flush, NULL);
|
(GFunc) gst_ts_demux_stream_flush, NULL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user