From: Julien Isorce Date: Mon, 28 Apr 2014 14:07:34 +0000 (+0100) Subject: glfilter: only warn when other_context attribute is set X-Git-Tag: 1.19.3~511^2~1989^2~1547 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c441afdc6b62bb30f785c69f527990e859a9f842;p=platform%2Fupstream%2Fgstreamer.git glfilter: only warn when other_context attribute is set Fix false positive --- diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 5d6fc6d61d..3f900712f0 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -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);