Browse Source

skins2(Windows): add a command to start the first playlist item

pull/2/head
Erwan Tulou 17 years ago
parent
commit
1c4ea6e1a3
  1. 9
      modules/gui/skins2/commands/cmd_playlist.cpp
  2. 3
      modules/gui/skins2/commands/cmd_playlist.hpp

9
modules/gui/skins2/commands/cmd_playlist.cpp

@ -120,3 +120,12 @@ void CmdPlaylistSave::execute()
playlist_Export( pPlaylist, m_file.c_str(), pPlaylist->p_local_category, psz_module );
}
}
void CmdPlaylistFirst::execute()
{
playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
playlist_Lock( pPlaylist );
playlist_Control( pPlaylist, PLAYLIST_PLAY, pl_Locked );
playlist_Unlock( pPlaylist );
}

3
modules/gui/skins2/commands/cmd_playlist.hpp

@ -58,6 +58,9 @@ DEFINE_COMMAND( PlaylistNext, "playlist next" )
/// Command to jump to the previous item
DEFINE_COMMAND( PlaylistPrevious, "playlist previous" )
/// Command to start the playlist
DEFINE_COMMAND( PlaylistFirst, "playlist first" )
/// Command to set the random state
class CmdPlaylistRandom: public CmdGeneric

Loading…
Cancel
Save