projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b495af2
)
gltestsrc: guard stop in gl thread
author
Matthew Waters
<matthew@centricular.com>
Tue, 7 Nov 2017 01:39:58 +0000
(12:39 +1100)
committer
Matthew Waters
<matthew@centricular.com>
Tue, 7 Nov 2017 01:39:58 +0000
(12:39 +1100)
So we don't result in a critical when we've never created the GL context:
gst_gl_context_thread_add: assertion 'GST_IS_GL_CONTEXT (context)' failed
ext/gl/gstgltestsrc.c
patch
|
blob
|
history
diff --git
a/ext/gl/gstgltestsrc.c
b/ext/gl/gstgltestsrc.c
index
cba25c9
..
b0abea5
100644
(file)
--- a/
ext/gl/gstgltestsrc.c
+++ b/
ext/gl/gstgltestsrc.c
@@
-544,8
+544,9
@@
gst_gl_test_src_stop (GstBaseSrc * basesrc)
{
GstGLTestSrc *src = GST_GL_TEST_SRC (basesrc);
- gst_gl_context_thread_add (src->context,
- (GstGLContextThreadFunc) gst_gl_test_src_gl_stop, src);
+ if (src->context)
+ gst_gl_context_thread_add (src->context,
+ (GstGLContextThreadFunc) gst_gl_test_src_gl_stop, src);
gst_caps_replace (&src->out_caps, NULL);