diff options
author | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2011-12-08 15:44:09 +0100 |
---|---|---|
committer | Gwenole Beauchesne <gwenole.beauchesne@intel.com> | 2011-12-08 15:44:09 +0100 |
commit | dc08d1eae08c7bfa3ab6c4b3a7770387d6058e0b (patch) | |
tree | b8bdb43501160468e7bbfa075870794e6caf30fa | |
parent | e3c6a78da69f008d94b0f6cce95136e94648ce69 (diff) |
vaapiplugin: properly set surface type to "vaapi" in caps.
-rw-r--r-- | gst/vaapi/gstvaapiconvert.c | 1 | ||||
-rw-r--r-- | gst/vaapi/gstvaapidecode.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapiconvert.c b/gst/vaapi/gstvaapiconvert.c index 229060c1..39f1c48d 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, "type", G_TYPE_STRING, "vaapi", NULL); gst_structure_set(structure, "opengl", G_TYPE_BOOLEAN, USE_VAAPI_GLX, NULL); if (v_framerate) gst_structure_set_value(structure, "framerate", v_framerate); diff --git a/gst/vaapi/gstvaapidecode.c b/gst/vaapi/gstvaapidecode.c index f0170f88..63f29fc0 100644 --- a/gst/vaapi/gstvaapidecode.c +++ b/gst/vaapi/gstvaapidecode.c @@ -159,6 +159,7 @@ 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, "type", G_TYPE_STRING, "vaapi", NULL); gst_structure_set(structure, "opengl", G_TYPE_BOOLEAN, USE_VAAPI_GLX, NULL); other_caps = gst_caps_copy(decode->srcpad_caps); |