diff --git a/gst-libs/gst/vaapi/gstvaapiutils_x11.c b/gst-libs/gst/vaapi/gstvaapiutils_x11.c
index a4f943c..0f3f4d9 100644
--- a/gst-libs/gst/vaapi/gstvaapiutils_x11.c
+++ b/gst-libs/gst/vaapi/gstvaapiutils_x11.c
@@ -90,7 +90,7 @@ x11_create_window (Display * dpy, guint w, guint h, guint vid, Colormap cmap)
 
   XGetWindowAttributes (dpy, rootwin, &wattr);
   depth = wattr.depth;
-  if (depth != 15 && depth != 16 && depth != 24 && depth != 32)
+  if (depth != 15 && depth != 16 && depth != 24 && depth != 30 && depth != 32)
     depth = 24;
 
   xswa_mask = CWBorderPixel | CWBackPixel;
