mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
qtdemux: effectively skip tracks that weren't listed on the 1st moov
Without this, stream is NULL and the code will try to access it, leading to segfaults.
This commit is contained in:
parent
70fca21c28
commit
78dfdee2aa
1 changed files with 2 additions and 0 deletions
|
@ -6892,6 +6892,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
stream = qtdemux_find_stream (qtdemux, track_id);
|
stream = qtdemux_find_stream (qtdemux, track_id);
|
||||||
if (!stream) {
|
if (!stream) {
|
||||||
GST_WARNING_OBJECT (qtdemux, "Stream not found, going to ignore it");
|
GST_WARNING_OBJECT (qtdemux, "Stream not found, going to ignore it");
|
||||||
|
goto skip_track;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8070,6 +8071,7 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
skip_track:
|
||||||
track_disabled:
|
track_disabled:
|
||||||
{
|
{
|
||||||
GST_INFO_OBJECT (qtdemux, "skip disabled track");
|
GST_INFO_OBJECT (qtdemux, "skip disabled track");
|
||||||
|
|
Loading…
Reference in a new issue