Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
dce56971
Commit
dce56971
authored
Nov 23, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed "seekable" into "can-seek" (for consistency).
parent
fac02ebd
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
15 deletions
+15
-15
include/vlc_input.h
include/vlc_input.h
+1
-1
modules/control/dbus.c
modules/control/dbus.c
+1
-1
modules/control/hotkeys.c
modules/control/hotkeys.c
+1
-1
modules/gui/macosx/controls.m
modules/gui/macosx/controls.m
+1
-1
modules/gui/macosx/intf.m
modules/gui/macosx/intf.m
+1
-1
src/control/media_player.c
src/control/media_player.c
+5
-5
src/input/input.c
src/input/input.c
+2
-2
src/input/var.c
src/input/var.c
+2
-2
src/input/vlmshell.c
src/input/vlmshell.c
+1
-1
No files found.
include/vlc_input.h
View file @
dce56971
...
@@ -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"
...
...
modules/control/dbus.c
View file @
dce56971
...
@@ -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
);
}
}
...
...
modules/control/hotkeys.c
View file @
dce56971
...
@@ -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
)
...
...
modules/gui/macosx/controls.m
View file @
dce56971
...
@@ -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
;
...
...
modules/gui/macosx/intf.m
View file @
dce56971
...
@@ -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
;
...
...
src/control/media_player.c
View file @
dce56971
...
@@ -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
,
"
pausabl
e"
,
input_pausable_changed
,
p_mi
);
var_DelCallback
(
p_input_thread
,
"
can-paus
e"
,
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
,
"
pausabl
e"
,
input_pausable_changed
,
p_mi
);
var_AddCallback
(
p_input_thread
,
"
can-paus
e"
,
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
;
...
...
src/input/input.c
View file @
dce56971
...
@@ -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
)
...
...
src/input/var.c
View file @
dce56971
...
@@ -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*/
...
...
src/input/vlmshell.c
View file @
dce56971
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment