From: Nicolas Dufresne Date: Fri, 4 Nov 2011 23:47:25 +0000 (-0400) Subject: vaapiplugin: properly set opengl support in caps. X-Git-Tag: accepted/trunk/20120822.173359~309 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36e0f582a8c7d28e5617aa47ad6f092e67e1ee71;p=profile%2Fivi%2Fgstreamer-vaapi.git vaapiplugin: properly set opengl support in caps. Signed-off-by: Gwenole Beauchesne --- diff --git a/gst/vaapi/gstvaapiconvert.c b/gst/vaapi/gstvaapiconvert.c index 043a6ba..229060c 100644 --- a/gst/vaapi/gstvaapiconvert.c +++ b/gst/vaapi/gstvaapiconvert.c @@ -488,6 +488,7 @@ gst_vaapiconvert_transform_caps( structure = gst_caps_get_structure(out_caps, 0); gst_structure_set_value(structure, "width", v_width); gst_structure_set_value(structure, "height", v_height); + gst_structure_set(structure, "opengl", G_TYPE_BOOLEAN, USE_VAAPI_GLX, NULL); if (v_framerate) gst_structure_set_value(structure, "framerate", v_framerate); if (v_par) diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index dff200b..f0170f8 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -159,6 +159,8 @@ gst_vaapidecode_update_src_caps(GstVaapiDecode *decode, GstCaps *caps) if (v_par) gst_structure_set_value(structure, "pixel-aspect-ratio", v_par); + gst_structure_set(structure, "opengl", G_TYPE_BOOLEAN, USE_VAAPI_GLX, NULL); + other_caps = gst_caps_copy(decode->srcpad_caps); success = gst_pad_set_caps(decode->srcpad, other_caps); gst_caps_unref(other_caps);