[vlc-devel] [PATCH] qt: set the cover art (if any) upon construction of the cover widget

Ludovic Fauvet etix at videolan.org
Thu Sep 13 14:10:29 CEST 2012


---
 modules/gui/qt4/components/playlist/playlist.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/modules/gui/qt4/components/playlist/playlist.cpp b/modules/gui/qt4/components/playlist/playlist.cpp
index 3598743..868a46f 100644
--- a/modules/gui/qt4/components/playlist/playlist.cpp
+++ b/modules/gui/qt4/components/playlist/playlist.cpp
@@ -83,6 +83,15 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_i, QWidget *_par )
 
     leftSplitter->addWidget( artContainer );
 
+    /* Fetch the current art (if any) from the input */
+    input_thread_t *p_input;
+    input_item_t *p_item;
+    if( ( p_input = THEMIM->getInput()       ) != NULL &&
+        ( p_item  = input_GetItem( p_input ) ) != NULL )
+    {
+        art->showArtUpdate( THEMIM->getIM()->decodeArtURL( p_item ) );
+    }
+
     /*******************
      * Right           *
      *******************/
-- 
1.7.12




More information about the vlc-devel mailing list