Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
cf6e402b
Commit
cf6e402b
authored
Oct 30, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
luarc: fix #4282
parent
f7520eb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
10 deletions
+24
-10
share/lua/intf/rc.lua
share/lua/intf/rc.lua
+24
-10
No files found.
share/lua/intf/rc.lua
View file @
cf6e402b
...
...
@@ -404,12 +404,26 @@ function titlechap(name,client,value)
client
:
append
(
item
)
end
end
function
titlechap_offset
(
client
,
offset
)
return
function
(
name
,
value
)
local
input
=
vlc
.
object
.
input
()
local
var
=
string.gsub
(
name
,
"_.*$"
,
""
)
vlc
.
var
.
set
(
input
,
var
,
vlc
.
var
.
get
(
input
,
var
)
+
offset
)
end
function
titlechap_offset
(
var
,
offset
)
local
input
=
vlc
.
object
.
input
()
vlc
.
var
.
set
(
input
,
var
,
vlc
.
var
.
get
(
input
,
var
)
+
offset
)
end
function
title_next
(
name
,
client
,
value
)
titlechap_offset
(
'title'
,
1
)
end
function
title_previous
(
name
,
client
,
value
)
titlechap_offset
(
'title'
,
-
1
)
end
function
chapter_next
(
name
,
client
,
value
)
titlechap_offset
(
'chapter'
,
1
)
end
function
chapter_previous
(
name
,
client
,
value
)
titlechap_offset
(
'chapter'
,
-
1
)
end
function
seek
(
name
,
client
,
value
)
...
...
@@ -502,11 +516,11 @@ commands_ordered = {
{
"clear"
;
{
func
=
skip2
(
vlc
.
playlist
.
clear
);
help
=
"clear the playlist"
}
};
{
"status"
;
{
func
=
playlist_status
;
help
=
"current playlist status"
}
};
{
"title"
;
{
func
=
titlechap
;
args
=
"[X]"
;
help
=
"set/get title in current item"
}
};
{
"title_n"
;
{
func
=
title
chap_offset
(
1
)
;
help
=
"next title in current item"
}
};
{
"title_p"
;
{
func
=
title
chap_offset
(
-
1
)
;
help
=
"previous title in current item"
}
};
{
"title_n"
;
{
func
=
title
_next
;
help
=
"next title in current item"
}
};
{
"title_p"
;
{
func
=
title
_previous
;
help
=
"previous title in current item"
}
};
{
"chapter"
;
{
func
=
titlechap
;
args
=
"[X]"
;
help
=
"set/get chapter in current item"
}
};
{
"chapter_n"
;
{
func
=
titlechap_offset
(
1
)
;
help
=
"next chapter in current item"
}
};
{
"chapter_p"
;
{
func
=
titlechap_offset
(
-
1
)
;
help
=
"previous chapter in current item"
}
};
{
"chapter_n"
;
{
func
=
chapter_next
;
help
=
"next chapter in current item"
}
};
{
"chapter_p"
;
{
func
=
chapter_previous
;
help
=
"previous chapter in current item"
}
};
{
""
};
{
"seek"
;
{
func
=
seek
;
args
=
"X"
;
help
=
"seek in seconds, for instance `seek 12'"
}
};
{
"pause"
;
{
func
=
skip2
(
vlc
.
playlist
.
pause
);
help
=
"toggle pause"
}
};
...
...
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