mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
gl: fix application context querying between elements
Fixes error introduced by:
a4e49ba8c9
https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/642
Using the application GL context as the local GL context is not going to
work very well.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/643>
This commit is contained in:
parent
989bbe29d8
commit
5d47b8e232
3 changed files with 5 additions and 5 deletions
|
@ -295,7 +295,7 @@ gst_gl_base_mixer_sink_query (GstAggregator * agg, GstAggregatorPad * bpad,
|
|||
if (mix->context)
|
||||
local = gst_object_ref (mix->context);
|
||||
if (mix->priv->other_context)
|
||||
local = gst_object_ref (mix->priv->other_context);
|
||||
other = gst_object_ref (mix->priv->other_context);
|
||||
g_rec_mutex_unlock (&mix->priv->context_lock);
|
||||
|
||||
ret = gst_gl_handle_context_query ((GstElement *) mix, query,
|
||||
|
@ -545,7 +545,7 @@ gst_gl_base_mixer_src_query (GstAggregator * agg, GstQuery * query)
|
|||
if (mix->context)
|
||||
local = gst_object_ref (mix->context);
|
||||
if (mix->priv->other_context)
|
||||
local = gst_object_ref (mix->priv->other_context);
|
||||
other = gst_object_ref (mix->priv->other_context);
|
||||
g_rec_mutex_unlock (&mix->priv->context_lock);
|
||||
|
||||
ret = gst_gl_handle_context_query ((GstElement *) mix, query,
|
||||
|
|
|
@ -721,7 +721,7 @@ stereosplit_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
if (split->context)
|
||||
local = gst_object_ref (split->context);
|
||||
if (split->other_context)
|
||||
local = gst_object_ref (split->other_context);
|
||||
other = gst_object_ref (split->other_context);
|
||||
g_rec_mutex_unlock (&split->context_lock);
|
||||
|
||||
ret = gst_gl_handle_context_query ((GstElement *) split, query,
|
||||
|
@ -768,7 +768,7 @@ stereosplit_sink_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
if (split->context)
|
||||
local = gst_object_ref (split->context);
|
||||
if (split->other_context)
|
||||
local = gst_object_ref (split->other_context);
|
||||
other = gst_object_ref (split->other_context);
|
||||
g_rec_mutex_unlock (&split->context_lock);
|
||||
|
||||
ret = gst_gl_handle_context_query ((GstElement *) split, query,
|
||||
|
|
|
@ -288,7 +288,7 @@ gst_gl_base_filter_query (GstBaseTransform * trans, GstPadDirection direction,
|
|||
if (filter->context)
|
||||
local = gst_object_ref (filter->context);
|
||||
if (filter->priv->other_context)
|
||||
local = gst_object_ref (filter->priv->other_context);
|
||||
other = gst_object_ref (filter->priv->other_context);
|
||||
g_rec_mutex_unlock (&filter->priv->context_lock);
|
||||
|
||||
ret = gst_gl_handle_context_query ((GstElement *) filter, query,
|
||||
|
|
Loading…
Reference in a new issue