X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fskins2%2Fcommands%2Fcmd_input.cpp;h=0aafe14db548a8a2636628c611f482b128afd110;hb=f9e4aada6337d7c419c8a7d36e359626a39a4390;hp=b70ffebd05bb2ec3042e5b2a4e407545dc075b1d;hpb=fe087a38282e93addb25fa9598393e40ea233b09;p=vlc diff --git a/modules/gui/skins2/commands/cmd_input.cpp b/modules/gui/skins2/commands/cmd_input.cpp index b70ffebd05..0aafe14db5 100644 --- a/modules/gui/skins2/commands/cmd_input.cpp +++ b/modules/gui/skins2/commands/cmd_input.cpp @@ -5,7 +5,7 @@ * $Id$ * * Authors: Cyril Deguet - * Olivier Teulière + * Olivier Teulière * * 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 @@ -19,13 +19,14 @@ * * 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 #include "cmd_input.hpp" #include "cmd_dialogs.hpp" - +#include +#include +#include void CmdPlay::execute() { @@ -35,10 +36,8 @@ 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 @@ -80,7 +79,7 @@ void CmdSlower::execute() 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 ); @@ -96,7 +95,7 @@ void CmdFaster::execute() 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 );