videodecoder: Proxy field order to the output caps
authorSebastian Dröge <sebastian@centricular.com>
Thu, 29 Sep 2016 11:48:29 +0000 (14:48 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 1 Nov 2016 18:40:07 +0000 (20:40 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=771376

gst-libs/gst/video/gstvideodecoder.c

index fdbc7d2c76c513a19b3fafbd12c0c66365470cd2..eb9dd298208ee0ab96c0deebd3bec139996d9341 100644 (file)
@@ -670,6 +670,9 @@ _new_output_state (GstVideoFormat fmt, guint width, guint height,
     tgt->fps_n = ref->fps_n;
     tgt->fps_d = ref->fps_d;
     tgt->views = ref->views;
+
+    GST_VIDEO_INFO_FIELD_ORDER (tgt) = GST_VIDEO_INFO_FIELD_ORDER (ref);
+
     if (GST_VIDEO_INFO_MULTIVIEW_MODE (ref) != GST_VIDEO_MULTIVIEW_MODE_NONE) {
       GST_VIDEO_INFO_MULTIVIEW_MODE (tgt) = GST_VIDEO_INFO_MULTIVIEW_MODE (ref);
       GST_VIDEO_INFO_MULTIVIEW_FLAGS (tgt) =