-
-#if 0
-
-
-static void SkipItem( playlist_t *p_playlist, int i_arg )
-{
- int i_oldindex = p_playlist->i_index;
- vlc_bool_t b_random, b_repeat, b_loop;
- vlc_value_t val;
- int i_count;
-
- /* Increment */
- else if( !b_repeat )
- {
- p_playlist->i_index += i_arg;
- }
-
- /* Boundary check */
- if( p_playlist->i_index >= p_playlist->i_size )
- {
- if( p_playlist->i_status == PLAYLIST_STOPPED || b_random || b_loop )
- {
- p_playlist->i_index -= p_playlist->i_size
- * ( p_playlist->i_index / p_playlist->i_size );
- }
- else
- {
- /* Don't loop by default: stop at playlist end */
- p_playlist->i_index = i_oldindex;
- p_playlist->i_status = PLAYLIST_STOPPED;
- }
- }
- else if( p_playlist->i_index < 0 )
- {
- p_playlist->i_index = p_playlist->i_size - 1;
- }
-
- /* Check that the item is enabled */
- if( p_playlist->pp_items[p_playlist->i_index]->b_enabled == VLC_FALSE &&
- p_playlist->i_enabled != 0)
- {
- SkipItem( p_playlist , 1 );
- }
-}
-
-#endif
-