]> git.sesse.net Git - vlc/commitdiff
qt4: Show artist in status bare when applicable
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 12 May 2007 21:01:45 +0000 (21:01 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Sat, 12 May 2007 21:01:45 +0000 (21:01 +0000)
modules/gui/qt4/input_manager.cpp

index 02cdd440b054832bd7ae4dba3db7e29ab0e430bb..c0543f1661fe5b96742eabf4dec2d47b355be0e5 100644 (file)
@@ -138,6 +138,14 @@ void InputManager::update()
                   input_GetItem(p_input)->p_meta->psz_nowplaying,
                   input_GetItem(p_input)->psz_name );
     }
+    else if( input_GetItem(p_input)->p_meta &&
+             input_GetItem(p_input)->p_meta->psz_artist &&
+             *input_GetItem(p_input)->p_meta->psz_artist )
+    {
+        text.sprintf( "%s - %s",
+                  input_GetItem(p_input)->p_meta->psz_artist,
+                  input_GetItem(p_input)->psz_name );
+    }
     else
     {
         text.sprintf( "%s", input_GetItem(p_input)->psz_name );