summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2016-05-13 16:39:25 +0200
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2016-06-06 17:39:26 -0400
commit616ccbb0db7e9793e84dfadd99ce6d330ce62b29 (patch)
treea26a25740be2dbe07a392a54f0c9ad7640612674 /sys
parentb5530a19a7b53064466b5487cc4e28547038c0e3 (diff)
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
Diffstat (limited to 'sys')
-rw-r--r--sys/v4l2/gstv4l2object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/v4l2/gstv4l2object.c b/sys/v4l2/gstv4l2object.c
index e0999b2df..0f51106db 100644
--- a/sys/v4l2/gstv4l2object.c
+++ b/sys/v4l2/gstv4l2object.c
@@ -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 ? */