Commit dce56971 authored by Laurent Aimar's avatar Laurent Aimar

Renamed "seekable" into "can-seek" (for consistency).

parent fac02ebd
...@@ -436,7 +436,7 @@ struct input_thread_t ...@@ -436,7 +436,7 @@ struct input_thread_t
* The read only variables are: * The read only variables are:
* - "length" * - "length"
* - "bookmarks" * - "bookmarks"
* - "seekable (if you can seek, it doesn't say if 'bar display' has be shown FIXME rename can-seek * - "can-seek" (if you can seek, it doesn't say if 'bar display' has be shown
* or not, for that check position != 0.0) * or not, for that check position != 0.0)
* - "can-pause" * - "can-pause"
* - "can-rate" * - "can-rate"
......
...@@ -1037,7 +1037,7 @@ static int UpdateCaps( intf_thread_t* p_intf, bool b_playlist_locked ) ...@@ -1037,7 +1037,7 @@ static int UpdateCaps( intf_thread_t* p_intf, bool b_playlist_locked )
* unconditionnaly true */ * unconditionnaly true */
if( var_GetBool( p_input, "can-pause" ) ) if( var_GetBool( p_input, "can-pause" ) )
i_caps |= CAPS_CAN_PAUSE; i_caps |= CAPS_CAN_PAUSE;
if( var_GetBool( p_input, "seekable" ) ) if( var_GetBool( p_input, "can-seek" ) )
i_caps |= CAPS_CAN_SEEK; i_caps |= CAPS_CAN_SEEK;
vlc_object_release( p_input ); vlc_object_release( p_input );
} }
......
...@@ -410,7 +410,7 @@ static void Run( intf_thread_t *p_intf ) ...@@ -410,7 +410,7 @@ static void Run( intf_thread_t *p_intf )
/* Input options */ /* Input options */
else if( p_input ) else if( p_input )
{ {
bool b_seekable = var_GetBool( p_input, "seekable" ); bool b_seekable = var_GetBool( p_input, "can-seek" );
int i_interval =0; int i_interval =0;
if( i_action == ACTIONID_PAUSE ) if( i_action == ACTIONID_PAUSE )
......
...@@ -983,7 +983,7 @@ ...@@ -983,7 +983,7 @@
{ {
if( p_input != NULL ) if( p_input != NULL )
{ {
var_Get( p_input, "seekable", &val); var_Get( p_input, "can-seek", &val);
bEnabled = val.b_bool; bEnabled = val.b_bool;
} }
else bEnabled = FALSE; else bEnabled = FALSE;
......
...@@ -1513,7 +1513,7 @@ static void * manage_cleanup( void * args ) ...@@ -1513,7 +1513,7 @@ static void * manage_cleanup( void * args )
} }
/* seekable streams */ /* seekable streams */
b_seekable = var_GetBool( p_input, "seekable" ); b_seekable = var_GetBool( p_input, "can-seek" );
/* check whether slow/fast motion is possible */ /* check whether slow/fast motion is possible */
b_control = p_input->b_can_pace_control; b_control = p_input->b_can_pace_control;
......
...@@ -84,8 +84,8 @@ static void release_input_thread( libvlc_media_player_t *p_mi ) ...@@ -84,8 +84,8 @@ static void release_input_thread( libvlc_media_player_t *p_mi )
{ {
vlc_event_manager_t * p_em = input_get_event_manager( p_input_thread ); vlc_event_manager_t * p_em = input_get_event_manager( p_input_thread );
vlc_event_detach( p_em, vlc_InputStateChanged, input_state_changed, p_mi ); vlc_event_detach( p_em, vlc_InputStateChanged, input_state_changed, p_mi );
var_DelCallback( p_input_thread, "seekable", input_seekable_changed, p_mi ); var_DelCallback( p_input_thread, "can-seek", input_seekable_changed, p_mi );
var_DelCallback( p_input_thread, "pausable", input_pausable_changed, p_mi ); var_DelCallback( p_input_thread, "can-pause", input_pausable_changed, p_mi );
var_DelCallback( p_input_thread, "intf-event", input_event_changed, p_mi ); var_DelCallback( p_input_thread, "intf-event", input_event_changed, p_mi );
/* We owned this one */ /* We owned this one */
...@@ -586,8 +586,8 @@ void libvlc_media_player_play( libvlc_media_player_t *p_mi, ...@@ -586,8 +586,8 @@ void libvlc_media_player_play( libvlc_media_player_t *p_mi,
vlc_event_manager_t * p_em = input_get_event_manager( p_input_thread ); vlc_event_manager_t * p_em = input_get_event_manager( p_input_thread );
vlc_event_attach( p_em, vlc_InputStateChanged, input_state_changed, p_mi ); vlc_event_attach( p_em, vlc_InputStateChanged, input_state_changed, p_mi );
var_AddCallback( p_input_thread, "seekable", input_seekable_changed, p_mi ); var_AddCallback( p_input_thread, "can-seek", input_seekable_changed, p_mi );
var_AddCallback( p_input_thread, "pausable", input_pausable_changed, p_mi ); var_AddCallback( p_input_thread, "can-pause", input_pausable_changed, p_mi );
var_AddCallback( p_input_thread, "intf-event", input_event_changed, p_mi ); var_AddCallback( p_input_thread, "intf-event", input_event_changed, p_mi );
vlc_mutex_unlock( &p_mi->object_lock ); vlc_mutex_unlock( &p_mi->object_lock );
...@@ -1078,7 +1078,7 @@ int libvlc_media_player_is_seekable( libvlc_media_player_t *p_mi, ...@@ -1078,7 +1078,7 @@ int libvlc_media_player_is_seekable( libvlc_media_player_t *p_mi,
libvlc_exception_clear( p_e ); libvlc_exception_clear( p_e );
return false; return false;
} }
var_Get( p_input_thread, "seekable", &val ); var_Get( p_input_thread, "can-seek", &val );
vlc_object_release( p_input_thread ); vlc_object_release( p_input_thread );
return val.b_bool; return val.b_bool;
......
...@@ -2347,7 +2347,7 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2347,7 +2347,7 @@ static int InputSourceInit( input_thread_t *p_input,
&val.b_bool ); &val.b_bool );
if( ret != VLC_SUCCESS ) if( ret != VLC_SUCCESS )
val.b_bool = false; val.b_bool = false;
var_Set( p_input, "seekable", val ); var_Set( p_input, "can-seek", val );
} }
else else
{ {
...@@ -2431,7 +2431,7 @@ static int InputSourceInit( input_thread_t *p_input, ...@@ -2431,7 +2431,7 @@ static int InputSourceInit( input_thread_t *p_input,
access_Control( in->p_access, ACCESS_CAN_SEEK, access_Control( in->p_access, ACCESS_CAN_SEEK,
&val.b_bool ); &val.b_bool );
var_Set( p_input, "seekable", val ); var_Set( p_input, "can-seek", val );
} }
if( b_master ) if( b_master )
......
...@@ -458,8 +458,8 @@ void input_ConfigVarInit ( input_thread_t *p_input ) ...@@ -458,8 +458,8 @@ void input_ConfigVarInit ( input_thread_t *p_input )
VLC_VAR_INTEGER | VLC_VAR_DOINHERIT); VLC_VAR_INTEGER | VLC_VAR_DOINHERIT);
} }
var_Create( p_input, "seekable", VLC_VAR_BOOL ); var_Create( p_input, "can-seek", VLC_VAR_BOOL );
var_SetBool( p_input, "seekable", true ); /* Fixed later*/ var_SetBool( p_input, "can-seek", true ); /* Fixed later*/
var_Create( p_input, "can-pause", VLC_VAR_BOOL ); var_Create( p_input, "can-pause", VLC_VAR_BOOL );
var_SetBool( p_input, "can-pause", true ); /* Fixed later*/ var_SetBool( p_input, "can-pause", true ); /* Fixed later*/
......
...@@ -1356,7 +1356,7 @@ static vlm_message_t *vlm_ShowMedia( vlm_media_sys_t *p_media ) ...@@ -1356,7 +1356,7 @@ static vlm_message_t *vlm_ShowMedia( vlm_media_sys_t *p_media )
APPEND_INPUT_INFO( "rate", "%d", Integer ); APPEND_INPUT_INFO( "rate", "%d", Integer );
APPEND_INPUT_INFO( "title", "%d", Integer ); APPEND_INPUT_INFO( "title", "%d", Integer );
APPEND_INPUT_INFO( "chapter", "%d", Integer ); APPEND_INPUT_INFO( "chapter", "%d", Integer );
APPEND_INPUT_INFO( "seekable", "%d", Bool ); APPEND_INPUT_INFO( "can-seek", "%d", Bool );
} }
#undef APPEND_INPUT_INFO #undef APPEND_INPUT_INFO
if( asprintf( &psz_tmp, "%d", p_instance->i_index + 1 ) != -1 ) if( asprintf( &psz_tmp, "%d", p_instance->i_index + 1 ) != -1 )
......
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