1 /*****************************************************************************
2 * var.c: object variables for input thread
3 *****************************************************************************
4 * Copyright (C) 2004-2007 VLC authors and VideoLAN
6 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2.1 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 Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
21 *****************************************************************************/
23 /*****************************************************************************
25 *****************************************************************************/
30 #include <vlc_common.h>
33 #include "input_internal.h"
35 /*****************************************************************************
36 * input_ConfigVarInit:
37 * Create all config object variables
38 *****************************************************************************/
39 void input_ConfigVarInit ( input_thread_t
*p_input
)
41 /* Create Object Variables for private use only */
43 if( !input_priv(p_input
)->b_preparsing
)
45 var_Create( p_input
, "video", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
46 var_Create( p_input
, "audio", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
47 var_Create( p_input
, "spu", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
49 var_Create( p_input
, "video-track", VLC_VAR_INTEGER
|VLC_VAR_DOINHERIT
);
50 var_Create( p_input
, "audio-track", VLC_VAR_INTEGER
|VLC_VAR_DOINHERIT
);
51 var_Create( p_input
, "sub-track", VLC_VAR_INTEGER
|VLC_VAR_DOINHERIT
);
53 var_Create( p_input
, "audio-language",
54 VLC_VAR_STRING
|VLC_VAR_DOINHERIT
);
55 var_Create( p_input
, "sub-language",
56 VLC_VAR_STRING
|VLC_VAR_DOINHERIT
);
57 var_Create( p_input
, "menu-language",
58 VLC_VAR_STRING
|VLC_VAR_DOINHERIT
);
60 var_Create( p_input
, "video-track-id",
61 VLC_VAR_STRING
|VLC_VAR_DOINHERIT
);
62 var_Create( p_input
, "audio-track-id",
63 VLC_VAR_STRING
|VLC_VAR_DOINHERIT
);
64 var_Create( p_input
, "sub-track-id",
65 VLC_VAR_STRING
|VLC_VAR_DOINHERIT
);
67 var_Create( p_input
, "sub-file", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
68 var_Create( p_input
, "sub-autodetect-file", VLC_VAR_BOOL
|
70 var_Create( p_input
, "sub-autodetect-path", VLC_VAR_STRING
|
72 var_Create( p_input
, "sub-autodetect-fuzzy", VLC_VAR_INTEGER
|
75 var_Create( p_input
, "sout", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
76 var_Create( p_input
, "sout-all", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
77 var_Create( p_input
, "sout-audio", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
78 var_Create( p_input
, "sout-video", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
79 var_Create( p_input
, "sout-spu", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
80 var_Create( p_input
, "sout-keep", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
82 var_Create( p_input
, "input-repeat",
83 VLC_VAR_INTEGER
|VLC_VAR_DOINHERIT
);
84 var_Create( p_input
, "start-time", VLC_VAR_FLOAT
|VLC_VAR_DOINHERIT
);
85 var_Create( p_input
, "stop-time", VLC_VAR_FLOAT
|VLC_VAR_DOINHERIT
);
86 var_Create( p_input
, "run-time", VLC_VAR_FLOAT
|VLC_VAR_DOINHERIT
);
87 var_Create( p_input
, "input-fast-seek", VLC_VAR_BOOL
|VLC_VAR_DOINHERIT
);
89 var_Create( p_input
, "input-slave",
90 VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
92 var_Create( p_input
, "audio-desync",
93 VLC_VAR_INTEGER
| VLC_VAR_DOINHERIT
);
94 var_Create( p_input
, "cr-average",
95 VLC_VAR_INTEGER
| VLC_VAR_DOINHERIT
);
96 var_Create( p_input
, "clock-synchro",
97 VLC_VAR_INTEGER
| VLC_VAR_DOINHERIT
);
99 var_Create( p_input
, "bookmarks", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
100 var_Create( p_input
, "programs", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
101 var_Create( p_input
, "program", VLC_VAR_INTEGER
| VLC_VAR_DOINHERIT
);
102 var_Create( p_input
, "rate", VLC_VAR_FLOAT
| VLC_VAR_DOINHERIT
);
106 var_Create( p_input
, "input-record-native", VLC_VAR_BOOL
| VLC_VAR_DOINHERIT
);
109 var_Create( p_input
, "access", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
110 var_Create( p_input
, "demux", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
111 var_Create( p_input
, "demux-filter", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
112 var_Create( p_input
, "stream-filter", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
115 var_Create( p_input
, "meta-title", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
116 var_Create( p_input
, "meta-author", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
117 var_Create( p_input
, "meta-artist", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
118 var_Create( p_input
, "meta-genre", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
119 var_Create( p_input
, "meta-copyright", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
120 var_Create( p_input
, "meta-description", VLC_VAR_STRING
|VLC_VAR_DOINHERIT
);
121 var_Create( p_input
, "meta-date", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
122 var_Create( p_input
, "meta-url", VLC_VAR_STRING
| VLC_VAR_DOINHERIT
);
124 /* Inherited by demux/subtitle.c */
125 var_Create( p_input
, "sub-original-fps", VLC_VAR_FLOAT
);