[vlc-commits] commit: lua: copy input options to result of playlist script (Pierre Ynard )
git at videolan.org
git at videolan.org
Fri Nov 5 01:57:20 CET 2010
vlc/vlc-1.1 | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Nov 5 01:48:26 2010 +0100| [db245d82fe0d8b2dfbc2cf481907211ff635a598] | committer: Pierre Ynard
lua: copy input options to result of playlist script
This fixes this kind of scenario: you want to save a video from your
favorite video website. So you open the VLC GUI, you copy/paste the URL
into the convert dialog and you click on okay. The corresponding
playlist lua script processes the URL and a new item is added into the
playlist, but the :sout option is lost in the process, and you start
watching a video that is never saved.
(cherry picked from commit 0d24baf131199c4ad5f304af0df7601e148dbaf6)
Signed-off-by: Pierre Ynard <linkfanel at yahoo.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=db245d82fe0d8b2dfbc2cf481907211ff635a598
---
modules/misc/lua/vlc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/misc/lua/vlc.c b/modules/misc/lua/vlc.c
index 7270e14..ba866ca 100644
--- a/modules/misc/lua/vlc.c
+++ b/modules/misc/lua/vlc.c
@@ -581,6 +581,7 @@ int __vlclua_playlist_add_internal( vlc_object_t *p_this, lua_State *L,
/* Append item to playlist */
if( p_parent ) /* Add to node */
{
+ input_item_CopyOptions( p_parent, p_input );
input_item_node_AppendItem( p_parent_node, p_input );
}
else /* Play or Enqueue (preparse) */
More information about the vlc-commits
mailing list