Commit 20d5f92b authored by Olivier Crête's avatar Olivier Crête 👻 Committed by Edward Hervey

qtdemux: Only set width/height in caps if they're non-0

If they are not valid, then let a downstream parser complete them.
parent 7db251f2
...@@ -8314,9 +8314,10 @@ gst_qtdemux_configure_stream (GstQTDemux * qtdemux, QtDemuxStream * stream) ...@@ -8314,9 +8314,10 @@ 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);
gst_caps_set_simple (CUR_STREAM (stream)->caps, if (CUR_STREAM (stream)->width && CUR_STREAM (stream)->height)
"width", G_TYPE_INT, CUR_STREAM (stream)->width, gst_caps_set_simple (CUR_STREAM (stream)->caps,
"height", G_TYPE_INT, CUR_STREAM (stream)->height, NULL); "width", G_TYPE_INT, CUR_STREAM (stream)->width,
"height", G_TYPE_INT, CUR_STREAM (stream)->height, NULL);
/* set framerate if calculated framerate is reliable */ /* set framerate if calculated framerate is reliable */
if (fps_available) { if (fps_available) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment