From: Benjamin Pracht Date: Thu, 23 Jun 2005 14:24:25 +0000 (+0000) Subject: * Fixes playlist search X-Git-Tag: 0.8.4~1438 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=73d19c9d7d2f5f8c01e9d07db8d2cb223c73d621;p=vlc * Fixes playlist search (Closes #229) --- diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m index b3b6fccbc2..40a5167861 100644 --- a/modules/gui/macosx/playlist.m +++ b/modules/gui/macosx/playlist.m @@ -925,7 +925,14 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/ } if( o_result != NULL ) { - for( i = 1 ; i < [o_result count] - 1 ; i++ ) + int i_start; + if( [[o_result objectAtIndex: 0] pointerValue] == + p_playlist->p_general ) + i_start = 1; + else + i_start = 0; + + for( i = i_start ; i < [o_result count] - 1 ; i++ ) { [o_outline_view expandItem: [o_outline_dict objectForKey: [NSString stringWithFormat: @"%p",