Changeset aa0bac02ac2ba7bb30e33b137bf714c0a5a94c9a

Show
Ignore:
Timestamp:
18/08/05 12:01:30 (3 years ago)
Author:
Christophe Massiot <massiot@videolan.org>
git-committer:
Christophe Massiot <massiot@videolan.org> 1124359290 +0000
git-parent:

[059d8bfa243cd4579637f5a731d48893559beef4]

git-author:
Christophe Massiot <massiot@videolan.org> 1124359290 +0000
Message:
  • modules/control/http.c: Implemented RPN functions playlist_move and
    playlist_delete.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/control/http.c

    r3368c03 raa0bac0  
    41054105            msg_Dbg( p_intf, "requested playlist empty" ); 
    41064106        } 
     4107        else if( !strcmp( s, "playlist_delete" ) ) 
     4108        { 
     4109            int i_id = SSPopN( st, vars ); 
     4110            playlist_LockDelete( p_sys->p_playlist, i_id ); 
     4111            msg_Dbg( p_intf, "requested playlist delete: %d", i_id ); 
     4112        } 
     4113        else if( !strcmp( s, "playlist_move" ) ) 
     4114        { 
     4115            int i_newpos = SSPopN( st, vars ); 
     4116            int i_pos = SSPopN( st, vars ); 
     4117            if ( i_pos < i_newpos ) 
     4118            { 
     4119                playlist_Move( p_sys->p_playlist, i_pos, i_newpos + 1 ); 
     4120            } 
     4121            else 
     4122            { 
     4123                playlist_Move( p_sys->p_playlist, i_pos, i_newpos ); 
     4124            } 
     4125            msg_Dbg( p_intf, "requested to move playlist item %d to %d", 
     4126                     i_pos, i_newpos); 
     4127        } 
    41074128        else 
    41084129        {