mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 10:10:32 +00:00
qt: specify that we currently only take 2D textures
Fixes black screen video playback on android without a caps filter.
This commit is contained in:
parent
1d41990b26
commit
0d851a66af
1 changed files with 6 additions and 2 deletions
|
@ -58,8 +58,12 @@ static GstStaticPadTemplate gst_qt_sink_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("sink",
|
GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_MAKE_WITH_FEATURES
|
GST_STATIC_CAPS ("video/x-raw(" GST_CAPS_FEATURE_MEMORY_GL_MEMORY "), "
|
||||||
(GST_CAPS_FEATURE_MEMORY_GL_MEMORY, "RGBA")));
|
"format = (string) RGBA, "
|
||||||
|
"width = " GST_VIDEO_SIZE_RANGE ", "
|
||||||
|
"height = " GST_VIDEO_SIZE_RANGE ", "
|
||||||
|
"framerate = " GST_VIDEO_FPS_RANGE ", "
|
||||||
|
"texture-target = (string) 2D"));
|
||||||
|
|
||||||
#define DEFAULT_FORCE_ASPECT_RATIO TRUE
|
#define DEFAULT_FORCE_ASPECT_RATIO TRUE
|
||||||
#define DEFAULT_PAR_N 0
|
#define DEFAULT_PAR_N 0
|
||||||
|
|
Loading…
Reference in a new issue