[vlc-commits] Lua demux: no need for playlist

Rémi Denis-Courmont git at videolan.org
Tue Aug 21 19:49:17 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 21 20:48:11 2012 +0300| [8be904aca94341a27d400bdc46d344b706ebfcbc] | committer: Rémi Denis-Courmont

Lua demux: no need for playlist

vlclua_playlist_add_internal() requires the playlist only if there is
no parent item. There is always a parent item when demuxing.

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

 modules/lua/demux.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/lua/demux.c b/modules/lua/demux.c
index 169d668..7bb6661 100644
--- a/modules/lua/demux.c
+++ b/modules/lua/demux.c
@@ -254,7 +254,6 @@ static int Demux( demux_t *p_demux )
 
     input_thread_t *p_input_thread = demux_GetParentInput( p_demux );
     input_item_t *p_current_input = input_GetItem( p_input_thread );
-    playlist_t *p_playlist = pl_Get( p_demux );
 
     luaL_register( L, "vlc", p_reg_parse );
 
@@ -278,8 +277,7 @@ static int Demux( demux_t *p_demux )
     }
 
     if( lua_gettop( L ) )
-        vlclua_playlist_add_internal( p_demux, L, p_playlist,
-                                      p_current_input, 0 );
+        vlclua_playlist_add_internal( p_demux, L, NULL, p_current_input, 0 );
     else
         msg_Err( p_demux, "Script went completely foobar" );
 



More information about the vlc-commits mailing list