Changeset 46cf6c1438d0c1a4b80ecbcc84a7cbbef0300930

Show
Ignore:
Timestamp:
27/06/08 13:15:36 (5 months ago)
Author:
Ilkka Ollakka <ileoo@videolan.org>
git-committer:
Ilkka Ollakka <ileoo@videolan.org> 1214565336 +0300
git-parent:

[ba9ecc700f9dd868929b81e492ea287f0ed244f6]

git-author:
Ilkka Ollakka <ileoo@videolan.org> 1214565336 +0300
Message:

give playlist to vlclua_playlist_add_internal instead of NULL, core doesn't like
NULL as playlist. fixes eg. youtube usage for me. Thou not sure if this
could be done some better way.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/lua/demux.c

    r95addd5 r46cf6c1  
    247247        vlc_object_find( p_demux, VLC_OBJECT_INPUT, FIND_PARENT ); 
    248248    input_item_t *p_current_input = input_GetItem( p_input_thread ); 
     249    playlist_t *p_playlist = pl_Yield( p_demux ); 
    249250 
    250251    luaL_register( L, "vlc", p_reg_parse ); 
     
    270271 
    271272    if( lua_gettop( L ) ) 
    272         vlclua_playlist_add_internal( p_demux, L, NULL
     273        vlclua_playlist_add_internal( p_demux, L, p_playlist
    273274                                      p_current_input, 0 ); 
    274275    else 
     
    276277 
    277278    vlc_object_release( p_input_thread ); 
     279    pl_Release( p_playlist ); 
    278280 
    279281    return -1; /* Needed for correct operation of go back */