mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
qtdemux: check return from qt_demux_video_caps
Now qtdemux_video_caps() can return NULL. We need to check this return before using it's value. https://bugzilla.gnome.org/show_bug.cgi?id=728987
This commit is contained in:
parent
c9597298f9
commit
5dc2e6bef1
1 changed files with 3 additions and 0 deletions
|
@ -7477,6 +7477,9 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
|||
|
||||
stream->caps =
|
||||
qtdemux_video_caps (qtdemux, stream, fourcc, stsd_data, &codec);
|
||||
if (G_UNLIKELY (!stream->caps))
|
||||
goto unknown_stream;
|
||||
|
||||
if (codec) {
|
||||
list = gst_tag_list_new_empty ();
|
||||
gst_tag_list_add (list, GST_TAG_MERGE_REPLACE,
|
||||
|
|
Loading…
Reference in a new issue