mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
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:
parent
b31c805a56
commit
4b373d4c97
1 changed files with 6 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue