mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
glfilter: only warn when other_context attribute is set
Fix false positive
This commit is contained in:
parent
9cb3f93b4a
commit
6a18a1346b
1 changed files with 9 additions and 6 deletions
|
@ -942,12 +942,15 @@ gst_gl_filter_decide_allocation (GstBaseTransform * trans, GstQuery * query)
|
|||
}
|
||||
}
|
||||
|
||||
if (!other_context)
|
||||
other_context = filter->other_context;
|
||||
else
|
||||
GST_ELEMENT_WARNING (filter, LIBRARY, SETTINGS,
|
||||
("%s", "Cannot share with more than one GL context"),
|
||||
("%s", "Cannot share with more than one GL context"));
|
||||
if (filter->other_context) {
|
||||
if (!other_context) {
|
||||
other_context = filter->other_context;
|
||||
} else {
|
||||
GST_ELEMENT_WARNING (filter, LIBRARY, SETTINGS,
|
||||
("%s", "Cannot share with more than one GL context"),
|
||||
("%s", "Cannot share with more than one GL context"));
|
||||
}
|
||||
}
|
||||
|
||||
if (!filter->context) {
|
||||
filter->context = gst_gl_context_new (filter->display);
|
||||
|
|
Loading…
Reference in a new issue