tsdemux: Don't dereference NULL if flushed before a program was selected

This commit is contained in:
Sebastian Dröge 2014-03-28 17:24:46 +01:00
parent ba114b6b22
commit 11bc356ce7

View file

@ -1249,6 +1249,9 @@ gst_ts_demux_stream_flush (TSDemuxStream * stream)
static void
gst_ts_demux_flush_streams (GstTSDemux * demux)
{
if (!demux->program)
return;
g_list_foreach (demux->program->stream_list,
(GFunc) gst_ts_demux_stream_flush, NULL);
}