]> git.sesse.net Git - vlc/commitdiff
playlist: playlist_NodeAddInput was noted as deprecated in docs, remove it from expor...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 19 Jul 2008 09:27:45 +0000 (11:27 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 19 Jul 2008 10:57:20 +0000 (12:57 +0200)
include/vlc_playlist.h
modules/gui/wxwidgets/dialogs/playlist.cpp
src/libvlccore.sym
src/playlist/playlist_internal.h

index 2f837e45437a41af90e03e72f3d4d03498e759ba..eb569500644b8710f530c0a40c5e8a44099b56b5 100644 (file)
@@ -368,7 +368,6 @@ VLC_EXPORT( int, playlist_ItemSetName, (playlist_item_t *, const char * ) );
 VLC_EXPORT( int,  playlist_Add,    ( playlist_t *, const char *, const char *, int, int, bool, bool ) );
 VLC_EXPORT( int,  playlist_AddExt, ( playlist_t *, const char *, const char *, int, int, mtime_t, const char *const *,int, bool, bool ) );
 VLC_EXPORT( int, playlist_AddInput, ( playlist_t *, input_item_t *, int, int, bool, bool ) );
-VLC_EXPORT( playlist_item_t *, playlist_NodeAddInput, ( playlist_t *, input_item_t *,playlist_item_t *,int , int, bool ) );
 VLC_EXPORT( int, playlist_BothAddInput, ( playlist_t *, input_item_t *,playlist_item_t *,int , int, int*, int*, bool ) );
 
 /********************** Misc item operations **********************/
index 4faf317afdb90945f19f83a05ced3fa2f23efdc6..c29a77f211899f7feebfbe56366c759fcb3e2851 100644 (file)
@@ -1287,8 +1287,8 @@ bool PlaylistFileDropTarget::OnDropFiles( wxCoord x, wxCoord y,
         char *psz_utf8 = wxDnDFromLocale( filenames[i] );
         input_item_t *p_input = input_ItemNew( p->p_playlist,
                                               psz_utf8, psz_utf8 );
-        int i_ret = ( playlist_NodeAddInput( p->p_playlist, p_input, p_dest,
-                PLAYLIST_PREPARSE, i_pos, false ) != VLC_SUCCESS );
+        int i_ret = ( playlist_BothAddInput( p->p_playlist, p_input, p_dest,
+                PLAYLIST_PREPARSE, i_pos, NULL, NULL, pl_Unlocked ) != VLC_SUCCESS );
         vlc_gc_decref( p_input );
         wxDnDLocaleFree( psz_utf8 );
         if( i_ret != VLC_SUCCESS )
index 82f0a3b6b446217eaa2c47bc50bbd40a9cd67c6c..e3c6a4b130a67796c2b0be6ab58799edcd8fca3c 100644 (file)
@@ -259,7 +259,6 @@ playlist_ItemNewWithType
 playlist_ItemSetName
 playlist_ItemToNode
 playlist_LiveSearchUpdate
-playlist_NodeAddInput
 playlist_NodeAppend
 playlist_NodeChildrenCount
 playlist_NodeCreate
index 767b649596a8462b1909f197bde01e6fd7ff7919..431502eb6a4e88625b27ee37be3969d8ef26d34a 100644 (file)
@@ -98,6 +98,9 @@ int playlist_MLDump( playlist_t *p_playlist );
 void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
                              int i_node_id, bool b_signal );
 
+playlist_item_t * playlist_NodeAddInput( playlist_t *, input_item_t *,
+        playlist_item_t *,int , int, bool );
+
 /* Tree walking */
 playlist_item_t *playlist_ItemFindFromInputAndRoot( playlist_t *p_playlist,
                                    int i_input_id, playlist_item_t *p_root,