Changeset 5b881fc1b692b3d3cbc3b304bec7dbf879cfca56

Show
Ignore:
Timestamp:
09/07/03 03:30:41 (5 years ago)
Author:
Derk-Jan Hartman <hartman@videolan.org>
git-committer:
Derk-Jan Hartman <hartman@videolan.org> 1057714241 +0000
git-parent:

[56dd78bd1f54651d7cc9623c8c723c73d727e3ad]

git-author:
Derk-Jan Hartman <hartman@videolan.org> 1057714241 +0000
Message:

* Update next/previous item routines. it descends from next chapter to

next title to next playlistitem. The old code for this was buggy. This
should work better. Especially for CDDA's, since we previously didn't support
titles.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/gui/macosx/controls.m

    r14682ad r5b881fc  
    33 ***************************************************************************** 
    44 * Copyright (C) 2002-2003 VideoLAN 
    5  * $Id: controls.m,v 1.43 2003/06/30 01:52:57 hartman Exp $ 
     5 * $Id: controls.m,v 1.44 2003/07/09 01:30:41 hartman Exp $ 
    66 * 
    77 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net> 
     
    159159        var_Get( p_playlist->p_input, "prev-chapter", &val ); 
    160160        var_Set( p_playlist->p_input, "prev-chapter", val ); 
    161  
    162         p_intf->p_sys->b_input_update = VLC_TRUE; 
    163161    } 
    164162    else if( p_area->i_id > 1 ) 
     
    168166        var_Get( p_playlist->p_input, "prev-title", &val ); 
    169167        var_Set( p_playlist->p_input, "prev-title", val ); 
    170  
    171         p_intf->p_sys->b_input_update = VLC_TRUE; 
    172168    } 
    173169    else 
     
    208204    if( p_area->i_part < p_area->i_part_nb && p_area->i_part_nb > 1 ) 
    209205    { 
     206    NSLog(@"next-chapter: %d, all: %d", p_area->i_part, p_area->i_part_nb); 
    210207        vlc_mutex_unlock( &p_playlist->p_input->stream.stream_lock ); 
    211208        vlc_mutex_unlock( &p_playlist->object_lock ); 
    212209        var_Get( p_playlist->p_input, "next-chapter", &val ); 
    213210        var_Set( p_playlist->p_input, "next-chapter", val ); 
    214  
    215         p_intf->p_sys->b_input_update = VLC_TRUE; 
    216     } 
    217     else if( p_area->i_id < p_playlist->p_input->stream.i_area_nb ) 
    218     { 
     211    } 
     212    else if( p_area->i_id < p_playlist->p_input->stream.i_area_nb && p_playlist->p_input->stream.i_area_nb > 1 ) 
     213    { 
     214    NSLog(@"next-title: %d, all: %d", p_area->i_id, p_playlist->p_input->stream.i_area_nb ); 
    219215        vlc_mutex_unlock( &p_playlist->p_input->stream.stream_lock ); 
    220216        vlc_mutex_unlock( &p_playlist->object_lock ); 
    221217        var_Get( p_playlist->p_input, "next-title", &val ); 
    222218        var_Set( p_playlist->p_input, "next-title", val ); 
    223  
    224         p_intf->p_sys->b_input_update = VLC_TRUE; 
    225219    } 
    226220    else 
    227221    { 
     222    NSLog(@"next-item"); 
    228223        vlc_mutex_unlock( &p_playlist->p_input->stream.stream_lock ); 
    229224        vlc_mutex_unlock( &p_playlist->object_lock );