Commit 3778d63a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: drop drawable plugin priority to zero

We select it explicitly when a HWND is set for embedding.
parent 6eb5f075
...@@ -42,8 +42,9 @@ vlc_module_begin () ...@@ -42,8 +42,9 @@ vlc_module_begin ()
set_description (N_("Embedded window video")) set_description (N_("Embedded window video"))
set_category (CAT_VIDEO) set_category (CAT_VIDEO)
set_subcategory (SUBCAT_VIDEO_VOUT) set_subcategory (SUBCAT_VIDEO_VOUT)
set_capability ("vout window hwnd", 70) set_capability ("vout window hwnd", 0)
set_callbacks (Open, Close) set_callbacks (Open, Close)
add_shortcut ("embed-hwnd")
vlc_module_end () vlc_module_end ()
static int Control (vout_window_t *, int, va_list); static int Control (vout_window_t *, int, va_list);
......
...@@ -845,6 +845,7 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi, ...@@ -845,6 +845,7 @@ void libvlc_media_player_set_hwnd( libvlc_media_player_t *p_mi,
{ {
assert (p_mi != NULL); assert (p_mi != NULL);
#ifdef WIN32 #ifdef WIN32
var_SetString (p_mi, "window", "embed-hwnd,any");
var_SetAddress (p_mi, "drawable-hwnd", drawable); var_SetAddress (p_mi, "drawable-hwnd", drawable);
#else #else
(void) p_mi; (void) drawable; (void) p_mi; (void) drawable;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment