diff options
author | Matthew Waters <ystreet00@gmail.com> | 2014-03-15 15:55:46 +0100 |
---|---|---|
committer | Matthew Waters <ystreet00@gmail.com> | 2014-03-15 15:55:46 +0100 |
commit | 5d67de92640f56747112218d5426200dfbc20eaf (patch) | |
tree | 446fee576dce608bf2abbaa1edcbb9b38fa06a5a | |
parent | 76eef8a6aed12c6f5a209339a9e8468a02441205 (diff) |
filter: warn about trying to share with multiple contexts at once
-rw-r--r-- | gst-libs/gst/gl/gstglfilter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 2ce0ca3..109379c 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); |