]> git.sesse.net Git - vlc/blob - test/libvlc/libvlc_additions.h
Use var_InheritString for --decklink-video-connection.
[vlc] / test / libvlc / libvlc_additions.h
1 /*
2  * libvlc_additions.c - Some helper method that should probably go into libvlc
3  */
4
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  **********************************************************************/
21
22 static void* media_list_add_file_path(libvlc_instance_t *vlc, libvlc_media_list_t *ml, const char * file_path)
23 {
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;
28 }
29