glfilter: only warn when other_context attribute is set

Fix false positive
This commit is contained in:
Julien Isorce 2014-04-28 15:07:34 +01:00
parent 9cb3f93b4a
commit 6a18a1346b

View file

@ -942,12 +942,15 @@ gst_gl_filter_decide_allocation (GstBaseTransform * trans, GstQuery * query)
} }
} }
if (!other_context) if (filter->other_context) {
other_context = filter->other_context; if (!other_context) {
else other_context = filter->other_context;
GST_ELEMENT_WARNING (filter, LIBRARY, SETTINGS, } else {
("%s", "Cannot share with more than one GL context"), GST_ELEMENT_WARNING (filter, LIBRARY, SETTINGS,
("%s", "Cannot share with more than one GL context")); ("%s", "Cannot share with more than one GL context"),
("%s", "Cannot share with more than one GL context"));
}
}
if (!filter->context) { if (!filter->context) {
filter->context = gst_gl_context_new (filter->display); filter->context = gst_gl_context_new (filter->display);