+#include "cmd_dialogs.hpp"
+#include <vlc_aout.h>
+#include <vlc_input.h>
+#include <vlc_playlist.h>
+
+void CmdPlay::execute()
+{
+ playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
+ if( pPlaylist == NULL )
+ {
+ return;
+ }
+
+ if( !playlist_IsEmpty( pPlaylist ) )
+ playlist_Play( pPlaylist );
+ else
+ {
+ // If the playlist is empty, open a file requester instead
+ CmdDlgFile cmd( getIntf() );
+ cmd.execute();
+ }
+}
+
+
+void CmdPause::execute()
+{
+ playlist_t *pPlaylist = getIntf()->p_sys->p_playlist;
+ if( pPlaylist == NULL )
+ {
+ return;
+ }
+
+ playlist_Pause( pPlaylist );
+}