Commit aa3efe4e authored by Yoann Peronneau's avatar Yoann Peronneau

Added Play and Pause OSD Icons for hotkeys.

parent a8037049
......@@ -31,6 +31,9 @@
#define OSD_ALIGN_TOP 0x4
#define OSD_ALIGN_BOTTOM 0x8
#define OSD_PLAY_ICON 1
#define OSD_PAUSE_ICON 2
/**
* Text style information.
* This struct is currently ignored
......@@ -57,3 +60,4 @@ VLC_EXPORT( void, __vout_OSDMessage, ( vlc_object_t *, char *, ... ) );
# define vout_OSDMessage __vout_OSDMessage
#endif
VLC_EXPORT( void, vout_OSDSlider, ( vlc_object_t *, int , short ) );
VLC_EXPORT( void, vout_OSDIcon, ( vlc_object_t *, short ) );
......@@ -332,7 +332,7 @@ static void Run( intf_thread_t *p_intf )
}
if( p_input && val.i_int != PAUSE_S )
{
vout_OSDMessage( p_intf, _( "Pause" ) );
vout_OSDIcon( VLC_OBJECT( p_intf ), OSD_PAUSE_ICON );
val.i_int = PAUSE_S;
var_Set( p_input, "state", val );
}
......@@ -342,7 +342,7 @@ static void Run( intf_thread_t *p_intf )
FIND_ANYWHERE );
if( p_playlist )
{
vout_OSDMessage( p_intf, _( "Play" ) );
vout_OSDIcon( VLC_OBJECT( p_intf ), OSD_PLAY_ICON );
playlist_Play( p_playlist );
vlc_object_release( p_playlist );
}
......
This diff is collapsed.
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