[906/906] filter: warn about trying to share with multiple contexts at once

This commit is contained in:
Matthew Waters 2014-03-15 15:55:46 +01:00 committed by Tim-Philipp Müller
parent 3f5b68b072
commit 4a18aa4b70

View file

@ -914,6 +914,10 @@ 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->context) {
filter->context = gst_gl_context_new (filter->display);