mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
tsdemux: Don't dereference NULL if flushed before a program was selected
This commit is contained in:
parent
ba114b6b22
commit
11bc356ce7
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue