From 0c46c5c3e27ef6629176b994fa33a1b3e4d78d10 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 12 Jun 2015 01:56:37 +1000 Subject: [PATCH] matroska-demux: Actually set detected 3D info into output caps. Use the information read from the StereoMode info to configure multiview-mode and multiview-flags in the video caps. --- gst/matroska/matroska-demux.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 6ad4822ab7..756aa67efe 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -5204,6 +5204,14 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext * videocontext->display_width * videocontext->pixel_height, videocontext->display_height * videocontext->pixel_width, NULL); } + if (videocontext->multiview_mode != GST_VIDEO_MULTIVIEW_MODE_NONE) { + gst_caps_set_simple (caps, + "multiview-mode", G_TYPE_STRING, + gst_video_multiview_mode_to_caps_string + (videocontext->multiview_mode), "multiview-flags", + GST_TYPE_VIDEO_MULTIVIEW_FLAGSET, videocontext->multiview_flags, + GST_FLAG_SET_MASK_EXACT, NULL); + } if (videocontext->default_fps > 0.0) { gint fps_n, fps_d; -- 2.34.1