Commit 62d4d133 authored by Antoine Cellerier's avatar Antoine Cellerier

repeat is a reserved lua keyword

Provide playlist._repeat() instead (and keep the old .repeat in case
anybody was using playlist["repeat"] to workaround the reserved keyword
issue).
parent 6f653ce6
......@@ -432,7 +432,8 @@ static const luaL_Reg vlclua_playlist_reg[] = {
{ "pause", vlclua_playlist_pause },
{ "stop", vlclua_playlist_stop },
{ "clear", vlclua_playlist_clear },
{ "repeat", vlclua_playlist_repeat },
{ "repeat", vlclua_playlist_repeat }, // repeat is a reserved lua keyword...
{ "repeat_", vlclua_playlist_repeat }, // ... provide repeat_ too.
{ "loop", vlclua_playlist_loop },
{ "random", vlclua_playlist_random },
{ "goto", vlclua_playlist_goto },
......
......@@ -192,7 +192,7 @@ playlist.play(): Play.
playlist.pause(): Pause.
playlist.stop(): Stop.
playlist.clear(): Clear the playlist.
playlist.repeat( [status] ): Toggle item repeat or set to specified value.
playlist.repeat_( [status] ): Toggle item repeat or set to specified value.
playlist.loop( [status] ): Toggle playlist loop or set to specified value.
playlist.random( [status] ): Toggle playlsit random or set to specified value.
playlist.goto( id ): Go to specified track.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment