[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:48:48 CET 2010


vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Fri Nov  5 01:48:26 2010 +0100| [0d24baf131199c4ad5f304af0df7601e148dbaf6] | 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d24baf131199c4ad5f304af0df7601e148dbaf6
---

 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 6dd05b5..43f19d4 100644
--- a/modules/misc/lua/vlc.c
+++ b/modules/misc/lua/vlc.c
@@ -579,6 +579,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