{
va_list args;
va_start( args, psz_fmt );
-
+
if( p_intf->p_sys->i_socket == -1 )
{
vprintf( psz_fmt, args );
var_AddCallback( p_intf, "time-opacity", Other, NULL );
var_Create( p_intf, "time-size", VLC_VAR_INTEGER | VLC_VAR_ISCOMMAND );
var_AddCallback( p_intf, "time-size", Other, NULL );
-
+
/* logo on the fly items */
var_Create( p_intf, "logo-file", VLC_VAR_VOID | VLC_VAR_ISCOMMAND );
var_AddCallback( p_intf, "logo-file", Other, NULL );
/* status callbacks */
/* Listen to audio volume updates */
var_AddCallback( p_intf->p_vlc, "volume", VolumeChanged, p_intf );
-
+
#ifdef WIN32
/* Get the file descriptor of the console input */
p_intf->p_sys->hConsoleIn = GetStdHandle(STD_INPUT_HANDLE);
vlc_mutex_unlock( &p_playlist->object_lock );
}
}
-
+
if( (p_input != NULL) && !p_input->b_dead && !p_input->b_die &&
(p_playlist != NULL) )
{
msg_rc( STATUS_CHANGE "( stop state: 0 )" );
break;
case PLAYLIST_RUNNING:
- msg_rc( STATUS_CHANGE "( play state: %d )", var_GetInteger( p_input, "state" ) );
+ msg_rc( STATUS_CHANGE "( play state: 1 )" );
break;
case PLAYLIST_PAUSED:
msg_rc( STATUS_CHANGE "( pause state: 2 )" );
}
static void Help( intf_thread_t *p_intf, vlc_bool_t b_longhelp)
-{
+{
msg_rc(_("+----[ Remote control commands ]"));
msg_rc( "| ");
msg_rc(_("| add XYZ . . . . . . . . . . add XYZ to playlist"));
msg_rc(_("| achan [X]. . . . . . . . set/get audio channels"));
msg_rc(_("| menu [on|off|up|down|left|right|select] use menu"));
msg_rc( "| ");
-
+
if (b_longhelp)
{
msg_rc(_("| marq-marquee STRING . . overlay STRING in video"));
{
intf_thread_t *p_intf = (intf_thread_t*)p_data;
input_thread_t *p_input = NULL;
-
+
vlc_mutex_lock( &p_intf->p_sys->status_lock );
p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT, FIND_ANYWHERE );
if( p_input )
{
intf_thread_t *p_intf = (intf_thread_t*)p_data;
input_thread_t *p_input = NULL;
-
+
vlc_mutex_lock( &p_intf->p_sys->status_lock );
p_input = vlc_object_find( p_intf, VLC_OBJECT_INPUT, FIND_ANYWHERE );
if( p_input )
vlc_object_release( p_input );
return VLC_EGENERIC;
}
-
+
/* Parse commands that only require an input */
if( !strcmp( psz_cmd, "pause" ) )
{
vlc_object_release( p_playlist );
return VLC_EGENERIC;
}
- }
-
+ }
+
/* Parse commands that require a playlist */
if( !strcmp( psz_cmd, "prev" ) )
{
{
return VLC_ENOOBJ;
}
-
+
p_input = vlc_object_find( p_this, VLC_OBJECT_INPUT, FIND_ANYWHERE );
if( !p_input )
{
return VLC_EGENERIC;
}
}
-
+
/* Parse miscellaneous commands */
if( !strcmp( psz_cmd, "marq-marquee" ) )
{
vlc_value_t oldval, vlc_value_t newval, void *p_data )
{
playlist_t *p_playlist;
-
+
p_playlist = vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( p_playlist )
{
keyval.i_int = config_GetInt( p_intf, "key-vol-mute" );
var_Set( p_intf->p_vlc, "key-pressed", keyval );
- }
+ }
i_error = aout_VolumeSet( p_this, i_volume );
osd_Volume( p_this );
msg_rc( STATUS_CHANGE "( audio volume: %d )", i_volume );
msg_rc( "[on|off|up|down|left|right|select]" );
return i_error;
}
-
+
p_playlist = vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( !p_playlist )
return VLC_ENOOBJ;
}
vlc_object_release( p_playlist );
}
-
+
val.psz_string = strdup( newval.psz_string );
if( !strcmp( val.psz_string, "on" ) || !strcmp( val.psz_string, "show" ))
osd_MenuShow( p_this );