]> git.sesse.net Git - vlc/blob - src/control/playlist.c
libvlc_playlist_play: remove unused exception
[vlc] / src / control / playlist.c
1 /*****************************************************************************
2  * playlist.c: libvlc new API playlist handling functions
3  *****************************************************************************
4  * Copyright (C) 2005 the VideoLAN team
5  * $Id$
6  *
7  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24 #ifdef HAVE_CONFIG_H
25 # include "config.h"
26 #endif
27
28 #include "libvlc_internal.h"
29 #include "libvlc.h"
30
31 #include <vlc/libvlc_structures.h>
32 #include <vlc/libvlc.h>
33 #include <vlc/libvlc_media.h>
34 #include <vlc/libvlc_media_player.h>
35 #include <vlc/deprecated.h>
36
37 #include <vlc_playlist.h>
38
39 #include <assert.h>
40
41 void libvlc_playlist_play( libvlc_instance_t *p_instance, int i_id,
42                            int i_options, char **ppsz_options )
43 {
44     playlist_t *pl = libvlc_priv (p_instance->p_libvlc_int)->p_playlist;
45     VLC_UNUSED(i_id); VLC_UNUSED(i_options); VLC_UNUSED(ppsz_options);
46
47     assert( pl );
48     if( pl->items.i_size == 0 )
49         return;
50     playlist_Control( pl, PLAYLIST_PLAY, false );
51 }