mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-11 02:24:13 +00:00
plugins: update GstGL deprecated symbol
GST_GL_TYPE_CONTEXT was deprecated. Now it is GST_TYPE_GL_CONTEXT.
This commit is contained in:
parent
202110bded
commit
3578716a4f
2 changed files with 3 additions and 3 deletions
|
@ -855,7 +855,7 @@ gst_vaapi_plugin_base_decide_allocation (GstVaapiPluginBase * plugin,
|
|||
|
||||
gst_query_parse_nth_allocation_meta (query, idx, ¶ms);
|
||||
if (params) {
|
||||
if (gst_structure_get (params, "gst.gl.GstGLContext", GST_GL_TYPE_CONTEXT,
|
||||
if (gst_structure_get (params, "gst.gl.GstGLContext", GST_TYPE_GL_CONTEXT,
|
||||
&gl_context, NULL) && gl_context) {
|
||||
gst_vaapi_plugin_base_set_gl_context (plugin, gl_context);
|
||||
gst_object_unref (gl_context);
|
||||
|
|
|
@ -244,14 +244,14 @@ gst_vaapi_find_gl_local_context (GstElement * element,
|
|||
gst_query_parse_context (query, &context);
|
||||
if (context) {
|
||||
s = gst_context_get_structure (context);
|
||||
gst_structure_get (s, "context", GST_GL_TYPE_CONTEXT, &gl_context, NULL);
|
||||
gst_structure_get (s, "context", GST_TYPE_GL_CONTEXT, &gl_context, NULL);
|
||||
}
|
||||
}
|
||||
if (!gl_context && _gst_context_run_query (element, query, GST_PAD_SINK)) {
|
||||
gst_query_parse_context (query, &context);
|
||||
if (context) {
|
||||
s = gst_context_get_structure (context);
|
||||
gst_structure_get (s, "context", GST_GL_TYPE_CONTEXT, &gl_context, NULL);
|
||||
gst_structure_get (s, "context", GST_TYPE_GL_CONTEXT, &gl_context, NULL);
|
||||
}
|
||||
}
|
||||
gst_query_unref (query);
|
||||
|
|
Loading…
Reference in a new issue