mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:46:13 +00:00
glviewconvert: remove set_format
We need the caps to be able to 1. check the caps features 2. get the requested texture-target on input/output
This commit is contained in:
parent
2dd8148b30
commit
c5f2c56fe2
1 changed files with 9 additions and 3 deletions
|
@ -483,6 +483,7 @@ static gboolean
|
||||||
_negotiated_caps (GstVideoAggregator * vagg, GstCaps * caps)
|
_negotiated_caps (GstVideoAggregator * vagg, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GstGLStereoMix *mix = GST_GL_STEREO_MIX (vagg);
|
GstGLStereoMix *mix = GST_GL_STEREO_MIX (vagg);
|
||||||
|
GstCaps *in_caps;
|
||||||
|
|
||||||
GST_LOG_OBJECT (mix, "Configured output caps %" GST_PTR_FORMAT, caps);
|
GST_LOG_OBJECT (mix, "Configured output caps %" GST_PTR_FORMAT, caps);
|
||||||
|
|
||||||
|
@ -498,11 +499,16 @@ _negotiated_caps (GstVideoAggregator * vagg, GstCaps * caps)
|
||||||
/* We can configure the view_converter now */
|
/* We can configure the view_converter now */
|
||||||
gst_gl_view_convert_set_context (mix->viewconvert,
|
gst_gl_view_convert_set_context (mix->viewconvert,
|
||||||
GST_GL_BASE_MIXER (mix)->context);
|
GST_GL_BASE_MIXER (mix)->context);
|
||||||
gst_gl_view_convert_set_format (mix->viewconvert, &mix->mix_info,
|
|
||||||
&mix->out_info);
|
in_caps = gst_video_info_to_caps (&mix->mix_info);
|
||||||
|
gst_caps_set_features (in_caps, 0,
|
||||||
|
gst_caps_features_from_string (GST_CAPS_FEATURE_MEMORY_GL_MEMORY));
|
||||||
|
gst_caps_set_simple (in_caps, "texture-target", G_TYPE_STRING,
|
||||||
|
GST_GL_TEXTURE_TARGET_2D_STR, NULL);
|
||||||
|
|
||||||
|
gst_gl_view_convert_set_caps (mix->viewconvert, in_caps, caps);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
|
Loading…
Reference in a new issue