* $Id$
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
- * Olivier Teulière <ipkiss@via.ecp.fr>
+ * Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#include <vlc/aout.h>
#include "cmd_input.hpp"
#include "cmd_dialogs.hpp"
-
+#include <vlc_aout.h>
+#include <vlc_input.h>
+#include <vlc_playlist.h>
void CmdPlay::execute()
{
return;
}
- if( pPlaylist->i_size )
- {
+ if( !playlist_IsEmpty( pPlaylist ) )
playlist_Play( pPlaylist );
- }
else
{
// If the playlist is empty, open a file requester instead
if( pInput )
{
vlc_value_t val;
- val.b_bool = VLC_TRUE;
+ val.b_bool = true;
var_Set( pInput, "rate-slower", val );
vlc_object_release( pInput );
if( pInput )
{
vlc_value_t val;
- val.b_bool = VLC_TRUE;
+ val.b_bool = true;
var_Set( pInput, "rate-faster", val );
vlc_object_release( pInput );