mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
glupload: restrict EGL and UploadMeta to RGBA
other formats are highly untested.
This commit is contained in:
parent
ae14797982
commit
608a3ddc7b
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,7 @@ _egl_image_upload_transform_caps (GstGLContext * context,
|
|||
ret = _set_caps_features (caps, GST_CAPS_FEATURE_MEMORY_GL_MEMORY);
|
||||
} else {
|
||||
ret = _set_caps_features (caps, GST_CAPS_FEATURE_MEMORY_EGL_IMAGE);
|
||||
gst_caps_set_simple (ret, "format", G_TYPE_STRING, "RGBA", NULL);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
@ -423,6 +424,7 @@ _upload_meta_upload_transform_caps (GstGLContext * context,
|
|||
ret =
|
||||
_set_caps_features (caps,
|
||||
GST_CAPS_FEATURE_META_GST_VIDEO_GL_TEXTURE_UPLOAD_META);
|
||||
gst_caps_set_simple (ret, "format", G_TYPE_STRING, "RGBA", NULL);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue