From: Felix Paul Kühne Date: Thu, 9 Nov 2006 14:17:25 +0000 (+0000) Subject: * don't mix old and new pl API X-Git-Tag: 0.9.0-test0~9610 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=01b16b830c707aed4a1811adb05217417890c2d7;p=vlc * don't mix old and new pl API --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 5066bde075..9b3cecb690 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -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 ); }