Commit e48e3696 authored by Erwan Tulou's avatar Erwan Tulou

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

(cherry picked from commit 1c4ea6e1)
parent 944d46c4
......@@ -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 );
}
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment