]> git.sesse.net Git - vlc/blobdiff - src/video_output/video_output.c
Removes trailing spaces. Removes tabs.
[vlc] / src / video_output / video_output.c
index 0c2d63a003149d3f569c522bfd75bcae2cc6020c..d7a92f8e8d87bd0b4477aa1a8a1b729257894b7b 100644 (file)
@@ -1642,10 +1642,15 @@ static void DisplayTitleOnOSD( vout_thread_t *p_vout )
     {
         i_now = mdate();
         i_stop = i_now + (mtime_t)(p_vout->i_title_timeout * 1000);
-        char *psz_nowplaying = 
+        char *psz_nowplaying =
             input_item_GetNowPlaying( input_GetItem( p_input ) );
         char *psz_artist = input_item_GetArtist( input_GetItem( p_input ) );
-        char *psz_name = input_item_GetName( input_GetItem( p_input ) );
+        char *psz_name = input_item_GetTitle( input_GetItem( p_input ) );
+        if( EMPTY_STR( psz_name ) )
+            {
+                free( psz_name );
+                psz_name = input_item_GetName( input_GetItem( p_input ) );
+            }
         if( !EMPTY_STR( psz_nowplaying ) )
         {
             vout_ShowTextAbsolute( p_vout, DEFAULT_CHAN,