[vlc-devel] commit: Win32: avoid error with missing drawable-hwnd ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Feb 21 18:41:29 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Feb 21 19:41:12 2010 +0200| [993626efaeca4cc86248f632dbe91888c6450228] | committer: Rémi Denis-Courmont
Win32: avoid error with missing drawable-hwnd
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=993626efaeca4cc86248f632dbe91888c6450228
---
modules/video_output/drawable.c | 2 --
src/libvlc.c | 4 +++-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/video_output/drawable.c b/modules/video_output/drawable.c
index 35125fb..1824704 100644
--- a/modules/video_output/drawable.c
+++ b/modules/video_output/drawable.c
@@ -44,8 +44,6 @@ vlc_module_begin ()
set_subcategory (SUBCAT_VIDEO_VOUT)
set_capability ("vout window hwnd", 70)
set_callbacks (Open, Close)
- //add_integer ("drawable-hwnd", 0, NULL, HWN_TEXT, HWND_LONGTEXT, true) /* How to ? */
- // change_unsaveable ()
vlc_module_end ()
static int Control (vout_window_t *, int, va_list);
diff --git a/src/libvlc.c b/src/libvlc.c
index fc7ad39..895990e 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -955,7 +955,9 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
var_Create( p_libvlc, "drawable-clip-left", VLC_VAR_INTEGER );
var_Create( p_libvlc, "drawable-clip-bottom", VLC_VAR_INTEGER );
var_Create( p_libvlc, "drawable-clip-right", VLC_VAR_INTEGER );
-
+#ifdef WIN32
+ var_Create( p_libvlc, "drawable-hwnd", VLC_VAR_ADDRESS );
+#endif
/*
* Get input filenames given as commandline arguments
More information about the vlc-devel
mailing list