]> git.sesse.net Git - vlc/blobdiff - modules/video_output/drawable.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / video_output / drawable.c
index 0abd8227d282a3c73d789858d0481e444db62ee4..1a887fc6d3e2328a097ace79c71cd803c0851afe 100644 (file)
@@ -42,8 +42,9 @@ vlc_module_begin ()
     set_description (N_("Embedded window video"))
     set_category (CAT_VIDEO)
     set_subcategory (SUBCAT_VIDEO_VOUT)
-    set_capability ("vout window hwnd", 70)
+    set_capability ("vout window hwnd", 0)
     set_callbacks (Open, Close)
+    add_shortcut ("embed-hwnd")
 vlc_module_end ()
 
 static int Control (vout_window_t *, int, va_list);
@@ -69,8 +70,7 @@ static int Open (vlc_object_t *obj)
     /* Keep a list of busy drawables, so we don't overlap videos if there are
      * more than one video track in the stream. */
     vlc_mutex_lock (&serializer);
-    /* TODO: per-type list of busy drawables */
-    used = var_GetAddress (obj->p_libvlc, "drawables-in-use");
+    used = var_GetAddress (obj->p_libvlc, "hwnd-in-use");
     if (used != NULL)
     {
         while (used[n] != NULL)