mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
gltestsrc: guard stop in gl thread
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
This commit is contained in:
parent
5345acac54
commit
0063e63fe3
1 changed files with 3 additions and 2 deletions
|
@ -544,8 +544,9 @@ gst_gl_test_src_stop (GstBaseSrc * basesrc)
|
||||||
{
|
{
|
||||||
GstGLTestSrc *src = GST_GL_TEST_SRC (basesrc);
|
GstGLTestSrc *src = GST_GL_TEST_SRC (basesrc);
|
||||||
|
|
||||||
gst_gl_context_thread_add (src->context,
|
if (src->context)
|
||||||
(GstGLContextThreadFunc) gst_gl_test_src_gl_stop, src);
|
gst_gl_context_thread_add (src->context,
|
||||||
|
(GstGLContextThreadFunc) gst_gl_test_src_gl_stop, src);
|
||||||
|
|
||||||
gst_caps_replace (&src->out_caps, NULL);
|
gst_caps_replace (&src->out_caps, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue