[vlc-commits] playlist: remove playlist_PreparseEnqueue() (refs #5460)

Rémi Denis-Courmont git at videolan.org
Tue Dec 31 19:45:12 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Dec 31 20:41:36 2013 +0200| [050a16328dac1d3573326c43d47376d08210604d] | committer: Rémi Denis-Courmont

playlist: remove playlist_PreparseEnqueue() (refs #5460)

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

 include/vlc_playlist.h            |    3 ---
 modules/gui/macosx/playlist.m     |    2 +-
 modules/gui/macosx/playlistinfo.m |    2 +-
 src/libvlccore.sym                |    1 -
 src/playlist/control.c            |   14 --------------
 src/playlist/item.c               |    2 +-
 6 files changed, 3 insertions(+), 21 deletions(-)

diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 49edfc8..ad54147 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -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 );
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 13d9e7a..270b238 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -860,7 +860,7 @@
 
         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");
         }
diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m
index 3cac0af..59e8d0c 100644
--- a/modules/gui/macosx/playlistinfo.m
+++ b/modules/gui/macosx/playlistinfo.m
@@ -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));
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 906b026..5a7c56a 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -334,7 +334,6 @@ playlist_NodeCreate
 playlist_NodeDelete
 playlist_NodeInsert
 playlist_NodeRemoveItem
-playlist_PreparseEnqueue
 playlist_RecursiveNodeSort
 playlist_ServicesDiscoveryAdd
 playlist_ServicesDiscoveryControl
diff --git a/src/playlist/control.c b/src/playlist/control.c
index 8b95e84..e1be944 100644
--- a/src/playlist/control.c
+++ b/src/playlist/control.c
@@ -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;
-}
diff --git a/src/playlist/item.c b/src/playlist/item.c
index e902063..b27389a 100644
--- a/src/playlist/item.c
+++ b/src/playlist/item.c
@@ -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 );
 }



More information about the vlc-commits mailing list