mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue