From: Derk-Jan Hartman Date: Sat, 21 Oct 2006 20:04:36 +0000 (+0000) Subject: * Updates due to the new playlist core X-Git-Tag: 0.9.0-test0~9825 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5a843a7f222ad3cd31bce94bc2c92967ecce8633;p=vlc * Updates due to the new playlist core --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index 5d79a030dd..f0b374b47f 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -598,10 +598,10 @@ NSLog( @"expandable" ); /* Since outlineView: willDisplayCell:... may call this function with p_items that don't exist anymore, first check if the item is still in the playlist. Any cleaner solution welcomed. */ - for( i = 0; i < p_playlist->i_all_size; i++ ) + for( i = 0; i < p_playlist->all_items.i_size; i++ ) { - if( p_playlist->pp_all_items[i] == p_item ) break; - else if ( i == p_playlist->i_all_size - 1 ) + if( ARRAY_VAL( p_playlist->all_items, i) == p_item ) break; + else if ( i == p_playlist->all_items.i_size - 1 ) { vlc_object_release( p_playlist ); vlc_mutex_unlock( &p_playlist->object_lock ); diff --git a/modules/gui/macosx/playlistinfo.m b/modules/gui/macosx/playlistinfo.m index 79fa529e3d..e1387e5dd9 100644 --- a/modules/gui/macosx/playlistinfo.m +++ b/modules/gui/macosx/playlistinfo.m @@ -310,9 +310,9 @@ playlist_t * p_playlist = pl_Yield( p_intf ); int i; - for( i = 0 ; i < p_playlist->i_all_size ; i++ ) + for( i = 0 ; i < p_playlist->all_items.i_size ; i++ ) { - if( p_playlist->pp_all_items[i] == p_local_item ) + if( ARRAY_VAL( p_playlist->all_items, i ) == p_local_item ) { vlc_object_release( p_playlist ); return YES;