*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2.0
+ * as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
- * You should have received a copy of the GNU Lesser General Public
+ * You should have received a copy of the GNU General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
****************************************************************************/
set_description (N_("Embedded window video"))
set_category (CAT_VIDEO)
set_subcategory (SUBCAT_VIDEO_VOUT)
- set_capability ("vout window xid", 70)
+ 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 ()
static int Control (vout_window_t *, int, va_list);
-/* TODO: move to vlc_variables.h */
-static inline void *var_GetAddress (vlc_object_t *o, const char *name)
-{
- vlc_value_t val;
- return var_Get (o, name, &val) ? NULL : val.p_address;
-}
-
static vlc_mutex_t serializer = VLC_STATIC_MUTEX;
/**
* more than one video track in the stream. */
vlc_mutex_lock (&serializer);
/* TODO: per-type list of busy drawables */
- used = var_GetAddress (VLC_OBJECT (obj->p_libvlc), "drawables-in-use");
+ used = var_GetAddress (obj->p_libvlc, "drawables-in-use");
if (used != NULL)
{
while (used[n] != NULL)
/* Remove this drawable from the list of busy ones */
vlc_mutex_lock (&serializer);
- used = var_GetAddress (VLC_OBJECT (obj->p_libvlc), "hwnd-in-use");
+ used = var_GetAddress (obj->p_libvlc, "hwnd-in-use");
assert (used);
while (used[n] != val)
{
static int Control (vout_window_t *wnd, int query, va_list ap)
{
+ VLC_UNUSED( ap );
+
switch (query)
{
case VOUT_WINDOW_SET_SIZE: /* not allowed */