{
input_thread_t *p_input_thread;
+#ifdef WIN32
+ if (sizeof (HWND) <= sizeof (libvlc_drawable_t))
+ p_mi->drawable.hwnd = (HWND)drawable;
+ else
+ libvlc_exception_raise(p_e, "Operation not supported");
+#else
p_mi->drawable.xid = drawable;
+#endif
/* Allow on the fly drawable changing. This is tricky has this may
* not be supported by every vout. We though can't disable it
libvlc_exception_t *p_e )
{
VLC_UNUSED(p_e);
+
+#ifdef WIN32
+ if (sizeof (HWND) <= sizeof (libvlc_drawable_t))
+ return (libvlc_drawable_t)p_mi->drawable.hwnd;
+ else
+ return 0;
+#else
return p_mi->drawable.xid;
+#endif
}
/**************************************************************************