]> git.sesse.net Git - vlc/commitdiff
* don't mix old and new pl API
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 9 Nov 2006 14:17:25 +0000 (14:17 +0000)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 9 Nov 2006 14:17:25 +0000 (14:17 +0000)
modules/gui/macosx/playlist.m

index 5066bde0758d0f0865c63d7126032a72a600e95b..9b3cecb6905c73730f7665599c4bb4e721f1139b 100644 (file)
@@ -257,13 +257,13 @@ NSLog( @"expandable" );
     if( [[o_tc identifier] isEqualToString:@"1"] )
     {
         /* sanity check to prevent the NSString class from crashing */
-        if( p_item->input.psz_name != NULL )
+        if( p_item->p_input->psz_name != NULL )
         {
             o_value = [NSString stringWithUTF8String:
-                p_item->input.psz_name];
+                p_item->p_input->psz_name];
             if( o_value == NULL )
                 o_value = [NSString stringWithCString:
-                    p_item->input.psz_name];
+                    p_item->p_input->psz_name];
         }
     }
     else if( [[o_tc identifier] isEqualToString:@"2"] && p_item->p_input->p_meta &&
@@ -477,13 +477,9 @@ NSLog( @"expandable" );
     else
     {
         if( playlist_IsEmpty( p_playlist ) )
-        {
             [o_status_field setStringValue: _NS("No items in the playlist")];
-        }
         else
-        {
             [o_status_field setStringValue: _NS("1 item in the playlist")];
-        }
     }
     vlc_object_release( p_playlist );
 }