Commit 0d24baf1 authored by Pierre Ynard's avatar 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.
parent 3c400ee8
......@@ -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) */
......
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