]> git.sesse.net Git - vlc/blobdiff - modules/video_output/xcb/common.c
XCB: use var_Inherit*()
[vlc] / modules / video_output / xcb / common.c
index d7e90d23da1f1cc376c3d072846a6c8e153f49e0..2b7588f319823000e67de25369f357ef35b912ed 100644 (file)
@@ -160,7 +160,7 @@ error:
 /** Check MIT-SHM shared memory support */
 void CheckSHM (vlc_object_t *obj, xcb_connection_t *conn, bool *restrict pshm)
 {
-    bool shm = var_CreateGetBool (obj, "x11-shm") > 0;
+    bool shm = var_InheritBool (obj, "x11-shm") > 0;
     if (shm)
     {
         xcb_shm_query_version_cookie_t ck;