projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e72ef63
)
v4l2dec: also remove the colorimetry and chroma-site fields
author
Matthew Waters
<matthew@centricular.com>
Mon, 25 Feb 2019 08:08:08 +0000
(19:08 +1100)
committer
Matthew Waters
<matthew@centricular.com>
Tue, 26 Feb 2019 07:04:54 +0000
(07:04 +0000)
If a different format is chosen, then these values are incorrect.
sys/v4l2/gstv4l2videodec.c
patch
|
blob
|
history
diff --git
a/sys/v4l2/gstv4l2videodec.c
b/sys/v4l2/gstv4l2videodec.c
index
7f87138
..
9dc7a1b
100644
(file)
--- a/
sys/v4l2/gstv4l2videodec.c
+++ b/
sys/v4l2/gstv4l2videodec.c
@@
-638,7
+638,8
@@
gst_v4l2_video_dec_handle_frame (GstVideoDecoder * decoder,
acquired_caps = gst_video_info_to_caps (&info);
GST_DEBUG_OBJECT (self, "Acquired caps: %" GST_PTR_FORMAT, acquired_caps);
st = gst_caps_get_structure (acquired_caps, 0);
- gst_structure_remove_field (st, "format");
+ gst_structure_remove_fields (st, "format", "colorimetry", "chroma-site",
+ NULL);
/* Probe currently available pixel formats */
available_caps = gst_caps_copy (self->probed_srccaps);