mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +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
7ba2288f3e
commit
8f6224c0ed
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