mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapidecode: remove chroma-site and colorimetry from src caps
https://bugzilla.gnome.org/show_bug.cgi?id=766596
This commit is contained in:
parent
4791e9f2ea
commit
1e52269b89
1 changed files with 8 additions and 0 deletions
|
@ -302,6 +302,14 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
|
|||
switch (feature) {
|
||||
case GST_VAAPI_CAPS_FEATURE_GL_TEXTURE_UPLOAD_META:
|
||||
case GST_VAAPI_CAPS_FEATURE_VAAPI_SURFACE:{
|
||||
GstStructure *structure = gst_caps_get_structure (state->caps, 0);
|
||||
|
||||
/* Remove chroma-site and colorimetry from src caps,
|
||||
* which is unnecessary on downstream if using VASurface
|
||||
*/
|
||||
gst_structure_remove_fields (structure, "chroma-site", "colorimetry",
|
||||
NULL);
|
||||
|
||||
feature_str = gst_vaapi_caps_feature_to_string (feature);
|
||||
features = gst_caps_features_new (feature_str, NULL);
|
||||
gst_caps_set_features (state->caps, 0, features);
|
||||
|
|
Loading…
Reference in a new issue