Changeset 6bfea2fcd003b1999217e4de9f3483e17f04b049

Show
Ignore:
Timestamp:
04/08/06 00:24:42 (2 years ago)
Author:
Clément Stenac <zorglub@videolan.org>
git-committer:
Clément Stenac <zorglub@videolan.org> 1154643882 +0000
git-parent:

[4ecc5ff7e39aa6601c2d0e643ad737b5189b89c2]

git-author:
Clément Stenac <zorglub@videolan.org> 1154643882 +0000
Message:

This dichotomy code apparently still is buggy. Todo: redo it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/input/item.c

    r75d4dcb r6bfea2f  
    7777                                          VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); 
    7878 
    79  
    8079    vlc_input_item_Clean( p_input ); 
    8180 
    8281    if( p_playlist ) 
    8382    { 
     83#if 0 
    8484        i_bottom = 0; i_top = p_playlist->i_input_items - 1; 
    8585        i = i_top / 2; 
     
    9999            REMOVE_ELEM( p_playlist->pp_input_items, 
    100100                         p_playlist->i_input_items, i ); 
     101        } 
     102#endif 
     103        for( i = 0 ; i< p_playlist->pp_input_items[i] ; i++ ) 
     104        { 
     105            if( p_playlist->pp_input_items[i]->i_id == p_input->i_id ) 
     106            { 
     107                REMOVE_ELEM( p_playlist->pp_input_items, 
     108                             p_playlist->i_input_items, i ); 
     109                break; 
     110            } 
    101111        } 
    102112        vlc_object_release( p_playlist );