videodecoder: Copy multiview-mode, flags and view count from ref info

When copying info from the reference input state, duplicate
all the fields of the video info. The sub-class will have the
chance to override them later.
This commit is contained in:
Jan Schmidt 2015-06-13 01:35:52 +10:00
parent b31c805a56
commit 4b373d4c97

View file

@ -754,6 +754,12 @@ _new_output_state (GstVideoFormat fmt, guint width, guint height,
tgt->par_d = ref->par_d;
tgt->fps_n = ref->fps_n;
tgt->fps_d = ref->fps_d;
tgt->views = ref->views;
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) =
GST_VIDEO_INFO_MULTIVIEW_FLAGS (ref);
}
}
GST_DEBUG ("reference par %d/%d fps %d/%d",