[vlc-commits] cli: preserve playback rate changes across playlist items
Pierre Ynard
git at videolan.org
Thu Jul 30 06:17:37 CEST 2020
vlc/vlc-3.0 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Thu Jul 30 05:44:14 2020 +0200| [8d26ecb5517b0593ba4b3c4cd5dc39e527064a10] | committer: Pierre Ynard
cli: preserve playback rate changes across playlist items
The `rate` command used to mistakenly set the playback rate on the input
object instead of the playlist object, resulting in changes getting lost
whenever the current input was stopped (or when another playlist item
was started).
Fixes #18375
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=8d26ecb5517b0593ba4b3c4cd5dc39e527064a10
---
share/lua/intf/cli.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/share/lua/intf/cli.lua b/share/lua/intf/cli.lua
index 6db1a1cbc9..b175627790 100644
--- a/share/lua/intf/cli.lua
+++ b/share/lua/intf/cli.lua
@@ -498,11 +498,11 @@ function volume(name,client,value)
end
function rate(name,client,value)
- local input = vlc.object.input()
+ local playlist = vlc.object.playlist()
if name == "rate" then
- vlc.var.set(input, "rate", common.us_tonumber(value))
+ vlc.var.set(playlist, "rate", common.us_tonumber(value))
elseif name == "normal" then
- vlc.var.set(input,"rate",1)
+ vlc.var.set(playlist,"rate",1)
end
end
More information about the vlc-commits
mailing list