macosx: forgot a corner case in the previous commit
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 1 Jan 2008 14:54:06 +0000 (14:54 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 1 Jan 2008 14:54:06 +0000 (14:54 +0000)
modules/gui/macosx/intf.m

index 780feaa..90d8a64 100644 (file)
@@ -1534,8 +1534,12 @@ static VLCMain *_o_sharedMainInstance = nil;
     {
         NSString *o_temp;
         vlc_object_yield( p_input );
-        o_temp = [NSString stringWithUTF8String:
-                  p_playlist->status.p_item->p_input->psz_name];
+        if( input_item_GetNowPlaying ( p_playlist->status.p_item->p_input ) )
+            o_temp = [NSString stringWithUTF8String: 
+                input_item_GetNowPlaying ( p_playlist->status.p_item->p_input )];
+        else
+            o_temp = [NSString stringWithUTF8String:
+                p_playlist->status.p_item->p_input->psz_name];
         [self setScrollField: o_temp stopAfter:-1];
         vlc_object_release( p_input );
         vlc_object_release( p_playlist );