]> git.sesse.net Git - vlc/commitdiff
* Update next/previous item routines. it descends from next chapter to
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 9 Jul 2003 01:30:41 +0000 (01:30 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 9 Jul 2003 01:30:41 +0000 (01:30 +0000)
  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.

modules/gui/macosx/controls.m

index 3aded209ea52ead10e6e44396350c9e74c84f79a..fe786efe08c25f47fb56fec5b78f5010d3cd9e4f 100644 (file)
@@ -2,7 +2,7 @@
  * controls.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: controls.m,v 1.43 2003/06/30 01:52:57 hartman Exp $
+ * $Id: controls.m,v 1.44 2003/07/09 01:30:41 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
         vlc_mutex_unlock( &p_playlist->object_lock );
         var_Get( p_playlist->p_input, "prev-chapter", &val );
         var_Set( p_playlist->p_input, "prev-chapter", val );
-
-        p_intf->p_sys->b_input_update = VLC_TRUE;
     }
     else if( p_area->i_id > 1 )
     {
         vlc_mutex_unlock( &p_playlist->object_lock );
         var_Get( p_playlist->p_input, "prev-title", &val );
         var_Set( p_playlist->p_input, "prev-title", val );
-
-        p_intf->p_sys->b_input_update = VLC_TRUE;
     }
     else
     {
 #define p_area p_playlist->p_input->stream.p_selected_area
     if( p_area->i_part < p_area->i_part_nb && p_area->i_part_nb > 1 )
     {
+    NSLog(@"next-chapter: %d, all: %d", p_area->i_part, p_area->i_part_nb);
         vlc_mutex_unlock( &p_playlist->p_input->stream.stream_lock );
         vlc_mutex_unlock( &p_playlist->object_lock );
         var_Get( p_playlist->p_input, "next-chapter", &val );
         var_Set( p_playlist->p_input, "next-chapter", val );
-
-        p_intf->p_sys->b_input_update = VLC_TRUE;
     }
-    else if( p_area->i_id < p_playlist->p_input->stream.i_area_nb )
+    else if( p_area->i_id < p_playlist->p_input->stream.i_area_nb && p_playlist->p_input->stream.i_area_nb > 1 )
     {
+    NSLog(@"next-title: %d, all: %d", p_area->i_id, p_playlist->p_input->stream.i_area_nb );
         vlc_mutex_unlock( &p_playlist->p_input->stream.stream_lock );
         vlc_mutex_unlock( &p_playlist->object_lock );
         var_Get( p_playlist->p_input, "next-title", &val );
         var_Set( p_playlist->p_input, "next-title", val );
-
-        p_intf->p_sys->b_input_update = VLC_TRUE;
     }
     else
     {
+    NSLog(@"next-item");
         vlc_mutex_unlock( &p_playlist->p_input->stream.stream_lock );
         vlc_mutex_unlock( &p_playlist->object_lock );
         playlist_Next( p_playlist );