playlist: remove playlist_PreparseEnqueue() (refs #5460)
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 31 Dec 2013 18:41:36 +0000 (20:41 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 31 Dec 2013 18:41:36 +0000 (20:41 +0200)
include/vlc_playlist.h
modules/gui/macosx/playlist.m
modules/gui/macosx/playlistinfo.m
src/libvlccore.sym
src/playlist/control.c
src/playlist/item.c

index 49edfc8..ad54147 100644 (file)
@@ -292,9 +292,6 @@ VLC_API mtime_t playlist_GetNodeDuration( playlist_item_t * );
  */
 VLC_API void playlist_Clear( playlist_t *, bool );
 
-/** Enqueue an input item for preparsing */
-VLC_API int playlist_PreparseEnqueue(playlist_t *, input_item_t * );
-
 /* Playlist sorting */
 VLC_API int playlist_TreeMove( playlist_t *, playlist_item_t *, playlist_item_t *, int );
 VLC_API int playlist_TreeMoveMany( playlist_t *, int, playlist_item_t **, playlist_item_t *, int );
index 13d9e7a..270b238 100644 (file)
 
         if (p_item) {
             if (p_item->i_children == -1)
-                playlist_PreparseEnqueue(p_playlist, p_item->p_input);
+                libvlc_MetaRequest(p_intf->p_libvlc, p_item->p_input);
             else
                 msg_Dbg(p_intf, "preparsing nodes not implemented");
         }
index 3cac0af..59e8d0c 100644 (file)
@@ -212,7 +212,7 @@ static VLCInfo *_o_sharedInstance = nil;
         [o_image_well setImage: [NSImage imageNamed: @"noart.png"]];
     } else {
         if (!input_item_IsPreparsed(p_item))
-            playlist_PreparseEnqueue(pl_Get(VLCIntf), p_item);
+            libvlc_MetaRequest(VLCIntf->p_libvlc, p_item);
 
         /* fill uri info */
         char * psz_url = decode_URI(input_item_GetURI(p_item));
index 906b026..5a7c56a 100644 (file)
@@ -334,7 +334,6 @@ playlist_NodeCreate
 playlist_NodeDelete
 playlist_NodeInsert
 playlist_NodeRemoveItem
-playlist_PreparseEnqueue
 playlist_RecursiveNodeSort
 playlist_ServicesDiscoveryAdd
 playlist_ServicesDiscoveryControl
index 8b95e84..e1be944 100644 (file)
@@ -160,17 +160,3 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
 
     return VLC_SUCCESS;
 }
-
-/*****************************************************************************
- * Preparse control
- *****************************************************************************/
-/** Enqueue an item for preparsing */
-int playlist_PreparseEnqueue( playlist_t *p_playlist, input_item_t *p_item )
-{
-    playlist_private_t *p_sys = pl_priv(p_playlist);
-
-    if( unlikely(p_sys->p_preparser == NULL) )
-        return VLC_ENOMEM;
-    playlist_preparser_Push( p_sys->p_preparser, p_item );
-    return VLC_SUCCESS;
-}
index e902063..b27389a 100644 (file)
@@ -766,7 +766,7 @@ static void GoAndPreparse( playlist_t *p_playlist, int i_mode,
         input_item_IsPreparsed( p_item->p_input ) == false &&
             ( EMPTY_STR( psz_artist ) || ( EMPTY_STR( psz_album ) ) )
           )
-        playlist_PreparseEnqueue( p_playlist, p_item->p_input );
+        libvlc_MetaRequest( p_playlist->p_libvlc, p_item->p_input );
     free( psz_artist );
     free( psz_album );
 }