Commit 5a843a7f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Updates due to the new playlist core

parent 718e1e05
...@@ -598,10 +598,10 @@ NSLog( @"expandable" ); ...@@ -598,10 +598,10 @@ NSLog( @"expandable" );
/* Since outlineView: willDisplayCell:... may call this function with /* Since outlineView: willDisplayCell:... may call this function with
p_items that don't exist anymore, first check if the item is still p_items that don't exist anymore, first check if the item is still
in the playlist. Any cleaner solution welcomed. */ 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; if( ARRAY_VAL( p_playlist->all_items, i) == p_item ) break;
else if ( i == p_playlist->i_all_size - 1 ) else if ( i == p_playlist->all_items.i_size - 1 )
{ {
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
vlc_mutex_unlock( &p_playlist->object_lock ); vlc_mutex_unlock( &p_playlist->object_lock );
......
...@@ -310,9 +310,9 @@ ...@@ -310,9 +310,9 @@
playlist_t * p_playlist = pl_Yield( p_intf ); playlist_t * p_playlist = pl_Yield( p_intf );
int i; 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 ); vlc_object_release( p_playlist );
return YES; return YES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment