1 /*****************************************************************************
3 *****************************************************************************
4 * Copyright (C) 2006-2009 the VideoLAN team
6 * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 #include "cmd_snapshot.hpp"
24 #include <vlc_player.h>
26 void CmdSnapshot::execute()
28 vlc_player_t
*player
= vlc_playlist_GetPlayer( getPL() );
29 vlc_player_vout_Snapshot( player
);
33 void CmdToggleRecord::execute()
35 vlc_player_t
*player
= vlc_playlist_GetPlayer( getPL() );
36 vlc_player_ToggleRecording( player
);
40 void CmdNextFrame::execute()
42 vlc_player_t
*player
= vlc_playlist_GetPlayer( getPL() );
43 vlc_player_NextVideoFrame( player
);