glimagesink: Make sure to always unref the display
Even if we didn't create a context yet.
This commit is contained in:
parent
d09f145ad7
commit
f068b64285
@ -587,6 +587,9 @@ gst_glimage_sink_change_state (GstElement * element, GstStateChange transition)
|
|||||||
gst_object_unref (window);
|
gst_object_unref (window);
|
||||||
gst_object_unref (glimage_sink->context);
|
gst_object_unref (glimage_sink->context);
|
||||||
glimage_sink->context = NULL;
|
glimage_sink->context = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (glimage_sink->display) {
|
||||||
gst_object_unref (glimage_sink->display);
|
gst_object_unref (glimage_sink->display);
|
||||||
glimage_sink->display = NULL;
|
glimage_sink->display = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user