Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
a324ed1b
Commit
a324ed1b
authored
Oct 12, 2006
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Repeat and Loop - Remote Control Interface by Dermot McGahon.
parent
80f01f29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
2 deletions
+53
-2
THANKS
THANKS
+1
-1
modules/control/rc.c
modules/control/rc.c
+52
-1
No files found.
THANKS
View file @
a324ed1b
...
@@ -52,7 +52,7 @@ David Weber <david_weber at gmx.de> - Mac OS X interface design & graphics (v0.5
...
@@ -52,7 +52,7 @@ David Weber <david_weber at gmx.de> - Mac OS X interface design & graphics (v0.5
Davor Orel <syntheticamac at yahoo.it> - Mac OS X icons
Davor Orel <syntheticamac at yahoo.it> - Mac OS X icons
Dennis van Amerongen <Dennis dot vanAmerongen at nob dot nl> - x264 options unification
Dennis van Amerongen <Dennis dot vanAmerongen at nob dot nl> - x264 options unification
Dennis Lou <dlou99 at yahoo dot com> - ATSC support in the DVB module
Dennis Lou <dlou99 at yahoo dot com> - ATSC support in the DVB module
Dermot McGahon <dermot at dspsrv dot com> - Bug fixes
Dermot McGahon <dermot at dspsrv dot com> - Bug fixes
, RC interface loop and repeat
Diego Petteno <flameeyes at gentoo dot org> - remove usage of internal ffmpeg symbols
Diego Petteno <flameeyes at gentoo dot org> - remove usage of internal ffmpeg symbols
DirektX <direktx at freemail.hu> - Hungarian translation
DirektX <direktx at freemail.hu> - Hungarian translation
Dugal Harris - DirectShow fixes and MJPEG patches
Dugal Harris - DirectShow fixes and MJPEG patches
...
...
modules/control/rc.c
View file @
a324ed1b
...
@@ -363,6 +363,10 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
...
@@ -363,6 +363,10 @@ static void RegisterCallbacks( intf_thread_t *p_intf )
var_Create
(
p_intf
,
"add"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_Create
(
p_intf
,
"add"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"add"
,
Playlist
,
NULL
);
var_AddCallback
(
p_intf
,
"add"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"repeat"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"repeat"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"loop"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"loop"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"enqueue"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_Create
(
p_intf
,
"enqueue"
,
VLC_VAR_STRING
|
VLC_VAR_ISCOMMAND
);
var_AddCallback
(
p_intf
,
"enqueue"
,
Playlist
,
NULL
);
var_AddCallback
(
p_intf
,
"enqueue"
,
Playlist
,
NULL
);
var_Create
(
p_intf
,
"playlist"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
var_Create
(
p_intf
,
"playlist"
,
VLC_VAR_VOID
|
VLC_VAR_ISCOMMAND
);
...
@@ -887,6 +891,8 @@ static void Help( intf_thread_t *p_intf, vlc_bool_t b_longhelp)
...
@@ -887,6 +891,8 @@ static void Help( intf_thread_t *p_intf, vlc_bool_t b_longhelp)
msg_rc
(
_
(
"| next . . . . . . . . . . . . next playlist item"
));
msg_rc
(
_
(
"| next . . . . . . . . . . . . next playlist item"
));
msg_rc
(
_
(
"| prev . . . . . . . . . . previous playlist item"
));
msg_rc
(
_
(
"| prev . . . . . . . . . . previous playlist item"
));
msg_rc
(
_
(
"| goto . . . . . . . . . . . . goto item at index"
));
msg_rc
(
_
(
"| goto . . . . . . . . . . . . goto item at index"
));
msg_rc
(
_
(
"| repeat [on|off] . . toggle playlist item repeat"
));
msg_rc
(
_
(
"| loop [on|off] . . . . toggle playlist item loop"
));
msg_rc
(
_
(
"| clear . . . . . . . . . . . clear the playlist"
));
msg_rc
(
_
(
"| clear . . . . . . . . . . . clear the playlist"
));
msg_rc
(
_
(
"| status . . . . . . . . . current playlist status"
));
msg_rc
(
_
(
"| status . . . . . . . . . current playlist status"
));
msg_rc
(
_
(
"| title [X] . . . . set/get title in current item"
));
msg_rc
(
_
(
"| title [X] . . . . set/get title in current item"
));
...
@@ -1299,13 +1305,14 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1299,13 +1305,14 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
static
int
Playlist
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
static
int
Playlist
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
{
vlc_value_t
val
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
playlist_t
*
p_playlist
=
pl_Yield
(
p_this
);
playlist_t
*
p_playlist
=
pl_Yield
(
p_this
);
PL_LOCK
;
PL_LOCK
;
if
(
p_playlist
->
p_input
)
if
(
p_playlist
->
p_input
)
{
{
vlc_value_t
val
;
var_Get
(
p_playlist
->
p_input
,
"state"
,
&
val
);
var_Get
(
p_playlist
->
p_input
,
"state"
,
&
val
);
if
(
(
val
.
i_int
==
PAUSE_S
)
||
(
val
.
i_int
==
PLAYLIST_PAUSED
)
)
if
(
(
val
.
i_int
==
PAUSE_S
)
||
(
val
.
i_int
==
PLAYLIST_PAUSED
)
)
{
{
...
@@ -1331,6 +1338,50 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1331,6 +1338,50 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
msg_Warn
(
p_playlist
,
"play"
);
msg_Warn
(
p_playlist
,
"play"
);
playlist_Play
(
p_playlist
);
playlist_Play
(
p_playlist
);
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"repeat"
)
)
{
vlc_bool_t
b_update
=
VLC_TRUE
;
var_Get
(
p_playlist
,
"repeat"
,
&
val
);
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
if
(
(
!
strncmp
(
newval
.
psz_string
,
"on"
,
2
)
&&
(
val
.
b_bool
==
VLC_TRUE
)
)
||
(
!
strncmp
(
newval
.
psz_string
,
"off"
,
3
)
&&
(
val
.
b_bool
==
VLC_FALSE
)
)
)
{
b_update
=
VLC_FALSE
;
}
}
if
(
b_update
)
{
val
.
b_bool
=
!
val
.
b_bool
;
var_Set
(
p_playlist
,
"repeat"
,
val
);
}
msg_rc
(
"Setting repeat to %d"
,
val
.
b_bool
);
}
else
if
(
!
strcmp
(
psz_cmd
,
"loop"
)
)
{
vlc_bool_t
b_update
=
VLC_TRUE
;
var_Get
(
p_playlist
,
"loop"
,
&
val
);
if
(
strlen
(
newval
.
psz_string
)
>
0
)
{
if
(
(
!
strncmp
(
newval
.
psz_string
,
"on"
,
2
)
&&
(
val
.
b_bool
==
VLC_TRUE
)
)
||
(
!
strncmp
(
newval
.
psz_string
,
"off"
,
3
)
&&
(
val
.
b_bool
==
VLC_FALSE
)
)
)
{
b_update
=
VLC_FALSE
;
}
}
if
(
b_update
)
{
val
.
b_bool
=
!
val
.
b_bool
;
var_Set
(
p_playlist
,
"loop"
,
val
);
}
msg_rc
(
"Setting loop to %d"
,
val
.
b_bool
);
}
else
if
(
!
strcmp
(
psz_cmd
,
"goto"
)
)
else
if
(
!
strcmp
(
psz_cmd
,
"goto"
)
)
{
{
msg_rc
(
_
(
"goto is deprecated"
)
);
msg_rc
(
_
(
"goto is deprecated"
)
);
...
...
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