#include <vlc_keys.h>
#include <vlc_osd.h>
#include <vlc_image.h>
+#include <vlc_modules.h>
#include "libvlc.h"
p_lock = osd_GetMutex( p_this );
vlc_mutex_lock( p_lock );
- var_Create( p_this->p_libvlc, "osd", VLC_VAR_ADDRESS );
- var_Get( p_this->p_libvlc, "osd", &val );
+ var_Create( p_this->p_libvlc, "osd-object", VLC_VAR_ADDRESS );
+ var_Get( p_this->p_libvlc, "osd-object", &val );
if( val.p_address == NULL )
{
static const char osdmenu_name[] = "osd menu";
var_SetBool( p_osd, "osd-menu-visible", false );
val.p_address = p_osd;
- var_Set( p_this->p_libvlc, "osd", val );
+ var_Set( p_this->p_libvlc, "osd-object", val );
}
else
p_osd = val.p_address;
var_Destroy( p_osd, "osd-menu-update" );
osd_ParserUnload( p_osd );
val.p_address = NULL;
- var_Set( p_this->p_libvlc, "osd", val );
+ var_Set( p_this->p_libvlc, "osd-object", val );
}
vlc_object_release( p_osd );
{
vlc_value_t val;
- if( var_Get( p_this->p_libvlc, "osd", &val ) )
+ if( var_Get( p_this->p_libvlc, "osd-object", &val ) )
return NULL;
return val.p_address;
}
var_InheritInteger( p_osd, p_button->psz_action ) );
#if defined(OSD_MENU_DEBUG)
msg_Dbg( p_osd, "select (%d, %s)",
- var_InheritInteger( p_osd, p_button->psz_action ),
+ (int)var_InheritInteger( p_osd, p_button->psz_action ),
p_button->psz_action );
#endif
}
osd_SetKeyPressed( VLC_OBJECT(p_osd->p_libvlc),
var_InheritInteger(p_osd, p_button->psz_action) );
#if defined(OSD_MENU_DEBUG)
- msg_Dbg( p_osd, "select (%d, %s)", val.i_int, p_button->psz_action );
+ msg_Dbg( p_osd, "select (%"PRId64", %s)", val.i_int, p_button->psz_action );
#endif
}
}
osd_SetKeyPressed( VLC_OBJECT(p_osd->p_libvlc),
var_InheritInteger(p_osd, p_button->psz_action_down) );
#if defined(OSD_MENU_DEBUG)
- msg_Dbg( p_osd, "select (%d, %s)", val.i_int, p_button->psz_action_down );
+ msg_Dbg( p_osd, "select (%"PRId64", %s)", val.i_int, p_button->psz_action_down );
#endif
}
}