mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
v4l2object: fill colorimetry in gst_v4l2_object_acquire_format
Instead of relying on the default colorimetry chosen by gst_video_info_set_format(), set info.colorimetry from the values returned by G_FMT. This allows decoders to propagate their input colorimetry downstream. https://bugzilla.gnome.org/show_bug.cgi?id=766383
This commit is contained in:
parent
b5530a19a7
commit
616ccbb0db
1 changed files with 2 additions and 0 deletions
|
@ -3680,6 +3680,8 @@ gst_v4l2_object_acquire_format (GstV4l2Object * v4l2object, GstVideoInfo * info)
|
|||
goto unsupported_field;
|
||||
}
|
||||
|
||||
gst_v4l2_object_get_colorspace (&fmt, &info->colorimetry);
|
||||
|
||||
gst_v4l2_object_save_format (v4l2object, fmtdesc, &fmt, info, &align);
|
||||
|
||||
/* Shall we setup the pool ? */
|
||||
|
|
Loading…
Reference in a new issue