mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
vaapiplugin: properly set surface type to "vaapi" in caps.
This commit is contained in:
parent
e3c6a78da6
commit
dc08d1eae0
2 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue