mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-25 18:14:15 +00:00
Fix gst_vaapi_window_x11_destroy().
This commit is contained in:
parent
fae3777c15
commit
69943d51ff
1 changed files with 9 additions and 5 deletions
|
@ -97,14 +97,18 @@ gst_vaapi_window_x11_destroy(GstVaapiWindow *window)
|
|||
GstVaapiWindowX11Private * const priv = GST_VAAPI_WINDOW_X11(window)->priv;
|
||||
Display * const dpy = GST_VAAPI_DISPLAY_XDISPLAY(priv->display);
|
||||
|
||||
if (priv->create_window && priv->xid) {
|
||||
gst_vaapi_window_x11_hide(window);
|
||||
XDestroyWindow(dpy, priv->xid);
|
||||
if (priv->xid) {
|
||||
if (priv->create_window) {
|
||||
gst_vaapi_window_x11_hide(window);
|
||||
XDestroyWindow(dpy, priv->xid);
|
||||
}
|
||||
priv->xid = None;
|
||||
}
|
||||
|
||||
g_object_unref(priv->display);
|
||||
priv->display = NULL;
|
||||
if (priv->display) {
|
||||
g_object_unref(priv->display);
|
||||
priv->display = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue