mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-01 13:49:58 +00:00
applemedia: vtdec: fix texture-target on iOS
This commit is contained in:
parent
89b6c296ad
commit
fe42e302dd
1 changed files with 6 additions and 2 deletions
|
@ -285,8 +285,12 @@ gst_vtdec_negotiate (GstVideoDecoder * decoder)
|
|||
gst_caps_features_contains (features,
|
||||
GST_CAPS_FEATURE_MEMORY_GL_MEMORY);
|
||||
if (output_textures)
|
||||
gst_caps_set_simple (output_state->caps,
|
||||
"texture-target", G_TYPE_STRING, GST_GL_TEXTURE_TARGET_RECTANGLE_STR,
|
||||
gst_caps_set_simple (output_state->caps, "texture-target", G_TYPE_STRING,
|
||||
#if !HAVE_IOS
|
||||
GST_GL_TEXTURE_TARGET_RECTANGLE_STR,
|
||||
#else
|
||||
GST_GL_TEXTURE_TARGET_2D_STR,
|
||||
#endif
|
||||
NULL);
|
||||
}
|
||||
gst_caps_unref (caps);
|
||||
|
|
Loading…
Reference in a new issue