gl: check null before unref GstGLDisplay
This commit is contained in:
parent
14bd147a2d
commit
4c65eca7be
@ -770,7 +770,9 @@ gst_gl_handle_set_context (GstElement * element, GstContext * context,
|
|||||||
if (replacement) {
|
if (replacement) {
|
||||||
GstGLDisplay *old = *display;
|
GstGLDisplay *old = *display;
|
||||||
*display = replacement;
|
*display = replacement;
|
||||||
gst_object_unref (old);
|
|
||||||
|
if (old)
|
||||||
|
gst_object_unref (old);
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user