[vlc-commits] playlist: remove playlist_AskForArtEnqueue() (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:36:04 2013 +0200| [d64350b408b060e6109571625c4de22e2ee6e08c] | committer: Rémi Denis-Courmont

playlist: remove playlist_AskForArtEnqueue() (refs #5460)

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

 include/vlc_playlist.h            |    3 ---
 modules/gui/macosx/playlist.m     |    2 +-
 modules/gui/macosx/playlistinfo.m |    2 +-
 modules/gui/qt4/input_manager.cpp |    2 +-
 src/libvlccore.sym                |    1 -
 src/playlist/control.c            |   10 ----------
 src/playlist/thread.c             |    2 +-
 7 files changed, 4 insertions(+), 18 deletions(-)

diff --git a/include/vlc_playlist.h b/include/vlc_playlist.h
index 10108cb..49edfc8 100644
--- a/include/vlc_playlist.h
+++ b/include/vlc_playlist.h
@@ -295,9 +295,6 @@ VLC_API void playlist_Clear( playlist_t *, bool );
 /** Enqueue an input item for preparsing */
 VLC_API int playlist_PreparseEnqueue(playlist_t *, input_item_t * );
 
-/** Request the art for an input item to be fetched */
-VLC_API int playlist_AskForArtEnqueue(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 134f5f4..13d9e7a 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -885,7 +885,7 @@
         p_item = [[o_outline_view itemAtRow: indexes[i]] pointerValue];
 
         if (p_item && p_item->i_children == -1)
-            playlist_AskForArtEnqueue(p_playlist, p_item->p_input);
+            libvlc_ArtRequest(p_intf->p_libvlc, p_item->p_input);
     }
     [self playlistUpdated];
 }
diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m
index 66bc75e..3cac0af 100644
--- a/modules/gui/macosx/playlistinfo.m
+++ b/modules/gui/macosx/playlistinfo.m
@@ -364,7 +364,7 @@ error:
 - (IBAction)downloadCoverArt:(id)sender
 {
     playlist_t * p_playlist = pl_Get(VLCIntf);
-    if (p_item) playlist_AskForArtEnqueue(p_playlist, p_item);
+    if (p_item) libvlc_ArtRequest(VLCIntf->p_libvlc, p_item);
 }
 
 - (input_item_t *)item
diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index 43526bd..bba154e 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -654,7 +654,7 @@ void InputManager::requestArtUpdate( input_item_t *p_item )
             if ( status & ( ITEM_ART_NOTFOUND|ITEM_ART_FETCHED ) )
                 return;
         }
-        playlist_AskForArtEnqueue( pl_Get(p_intf), p_item );
+        libvlc_ArtRequest( p_intf->p_libvlc, p_item );
         /* No input will signal the cover art to update,
              * let's do it ourself */
         if ( b_current_item )
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 200d1f2..906b026 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -309,7 +309,6 @@ plane_CopyPixels
 playlist_Add
 playlist_AddExt
 playlist_AddInput
-playlist_AskForArtEnqueue
 playlist_AssertLocked
 playlist_ChildSearchName
 playlist_Clear
diff --git a/src/playlist/control.c b/src/playlist/control.c
index 7d6791b..8b95e84 100644
--- a/src/playlist/control.c
+++ b/src/playlist/control.c
@@ -174,13 +174,3 @@ int playlist_PreparseEnqueue( playlist_t *p_playlist, input_item_t *p_item )
     playlist_preparser_Push( p_sys->p_preparser, p_item );
     return VLC_SUCCESS;
 }
-
-int playlist_AskForArtEnqueue( 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_fetcher_Push( p_sys->p_preparser, p_item );
-    return VLC_SUCCESS;
-}
diff --git a/src/playlist/thread.c b/src/playlist/thread.c
index 594fb6b..ed1b808 100644
--- a/src/playlist/thread.c
+++ b/src/playlist/thread.c
@@ -246,7 +246,7 @@ static int PlayItem( playlist_t *p_playlist, playlist_item_t *p_item )
         if( !b_has_art || strncmp( psz_arturl, "attachment://", 13 ) )
         {
             PL_DEBUG( "requesting art for %s", psz_name );
-            playlist_AskForArtEnqueue( p_playlist, p_input );
+            libvlc_ArtRequest( p_playlist->p_libvlc, p_input );
         }
         free( psz_arturl );
         free( psz_name );



More information about the vlc-commits mailing list