cvdsub: use VLC_TS_INVALID (refs #3135)
[vlc/solaris.git] / test / libvlc / libvlc_additions.h
blobe029ad748b30e14196e0e5a5a02b1b7071923f45
1 /*
2 * libvlc_additions.c - Some helper method that should probably go into libvlc
3 */
5 /**********************************************************************
6 * Copyright (C) 2007 RĂ©mi Denis-Courmont. *
7 * This program is free software; you can redistribute and/or modify *
8 * it under the terms of the GNU General Public License as published *
9 * by the Free Software Foundation; version 2 of the license, or (at *
10 * your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
15 * See the GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, you can get it from: *
19 * http://www.gnu.org/copyleft/gpl.html *
20 **********************************************************************/
22 static void* media_list_add_file_path(libvlc_instance_t *vlc, libvlc_media_list_t *ml, const char * file_path)
24 libvlc_media_t *md = libvlc_media_new (vlc, file_path, &ex);
25 catch ();
27 libvlc_media_list_add_media (ml, md, &ex);
28 catch ();
30 libvlc_media_release (md);
31 return md;