Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b8c2e88e
Commit
b8c2e88e
authored
Jan 12, 2003
by
Sigmund Augdal Helberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new rule for remote controls with combined play/pause button (like mine has)
parent
351bda6d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
doc/lirc/example.lircrc
doc/lirc/example.lircrc
+17
-1
modules/control/lirc/lirc.c
modules/control/lirc/lirc.c
+24
-1
No files found.
doc/lirc/example.lircrc
View file @
b8c2e88e
# This is an example .lircrc file that shows the different config strings that
# vlc understand. button names are from an animax remote, and these may change
# with different remotes
begin
prog = vlc
button = PLAY_UP
config = PLAY
end
begin
prog = vlc
button = PAUSE_UP
config = PAUSE
end
#use this target if you have a combined play/pause button
begin
prog = vlc
button = PLAY_UP
config = PLAYPAUSE
end
begin
prog = vlc
button = STOP_UP
...
...
@@ -26,7 +42,7 @@ end
begin
prog = vlc
button = SKIP_BACKWARD
config =
LAST
config =
PREV
end
begin
...
...
modules/control/lirc/lirc.c
View file @
b8c2e88e
...
...
@@ -2,7 +2,7 @@
* lirc.c : lirc plugin for vlc
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: lirc.c,v 1.
1 2002/08/04 17:23:42 sam
Exp $
* $Id: lirc.c,v 1.
2 2003/01/12 01:26:36 sigmunau
Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
...
...
@@ -197,6 +197,29 @@ static void Run( intf_thread_t *p_intf )
}
}
}
if
(
!
strcmp
(
c
,
"PLAYPAUSE"
)
)
{
if
(
p_intf
->
p_sys
->
p_input
&&
p_intf
->
p_sys
->
p_input
->
stream
.
control
.
i_status
!=
PAUSE_S
)
{
input_SetStatus
(
p_intf
->
p_sys
->
p_input
,
INPUT_STATUS_PAUSE
);
}
else
{
p_playlist
=
vlc_object_find
(
p_intf
,
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
)
{
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
if
(
p_playlist
->
i_size
)
{
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
playlist_Play
(
p_playlist
);
vlc_object_release
(
p_playlist
);
}
}
}
}
else
if
(
p_intf
->
p_sys
->
p_input
)
{
p_input
=
p_intf
->
p_sys
->
p_input
;
...
...
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