demux: smooth: use es_format_Change
[vlc.git] / test / libvlc / libvlc_additions.h
bloba81787e4f24e5ddb58ae153d2cfb25213a635508
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_location (vlc, file_path);
25 libvlc_media_list_add_media (ml, md);
26 libvlc_media_release (md);
27 return md;