From 4a18aa4b7072729becbf4db36b9805911c9073d1 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Sat, 15 Mar 2014 15:55:46 +0100 Subject: [PATCH] [906/906] filter: warn about trying to share with multiple contexts at once --- gst-libs/gst/gl/gstglfilter.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 2ce0ca3346..109379c146 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -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);