mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
qtdemux: Only set width/height in caps if they're non-0
If they are not valid, then let a downstream parser complete them. https://bugzilla.gnome.org/show_bug.cgi?id=796878
This commit is contained in:
parent
7db251f214
commit
20d5f92b28
1 changed files with 4 additions and 3 deletions
|
@ -8314,6 +8314,7 @@ gst_qtdemux_configure_stream (GstQTDemux * qtdemux, QtDemuxStream * stream)
|
||||||
CUR_STREAM (stream)->caps =
|
CUR_STREAM (stream)->caps =
|
||||||
gst_caps_make_writable (CUR_STREAM (stream)->caps);
|
gst_caps_make_writable (CUR_STREAM (stream)->caps);
|
||||||
|
|
||||||
|
if (CUR_STREAM (stream)->width && CUR_STREAM (stream)->height)
|
||||||
gst_caps_set_simple (CUR_STREAM (stream)->caps,
|
gst_caps_set_simple (CUR_STREAM (stream)->caps,
|
||||||
"width", G_TYPE_INT, CUR_STREAM (stream)->width,
|
"width", G_TYPE_INT, CUR_STREAM (stream)->width,
|
||||||
"height", G_TYPE_INT, CUR_STREAM (stream)->height, NULL);
|
"height", G_TYPE_INT, CUR_STREAM (stream)->height, NULL);
|
||||||
|
|
Loading…
Reference in a new issue