Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
cdf54698
Commit
cdf54698
authored
Jan 23, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
misc: use var_Inherit
parent
23c9bffb
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
29 additions
and
29 deletions
+29
-29
modules/control/globalhotkeys/win32.c
modules/control/globalhotkeys/win32.c
+1
-1
modules/control/globalhotkeys/xcb.c
modules/control/globalhotkeys/xcb.c
+1
-1
modules/meta_engine/folder.c
modules/meta_engine/folder.c
+1
-1
modules/misc/audioscrobbler.c
modules/misc/audioscrobbler.c
+3
-3
modules/misc/dummy/interface.c
modules/misc/dummy/interface.c
+1
-1
modules/misc/freetype.c
modules/misc/freetype.c
+2
-2
modules/misc/gnutls.c
modules/misc/gnutls.c
+2
-2
modules/misc/logger.c
modules/misc/logger.c
+1
-1
modules/misc/notify/growl_udp.c
modules/misc/notify/growl_udp.c
+3
-3
modules/misc/notify/msn.c
modules/misc/notify/msn.c
+1
-1
modules/misc/notify/notify.c
modules/misc/notify/notify.c
+1
-1
modules/misc/notify/telepathy.c
modules/misc/notify/telepathy.c
+1
-1
modules/misc/notify/xosd.c
modules/misc/notify/xosd.c
+6
-6
modules/misc/osd/simple.c
modules/misc/osd/simple.c
+1
-1
modules/misc/svg.c
modules/misc/svg.c
+1
-1
modules/mux/asf.c
modules/mux/asf.c
+2
-2
modules/services_discovery/sap.c
modules/services_discovery/sap.c
+1
-1
No files found.
modules/control/globalhotkeys/win32.c
View file @
cdf54698
...
...
@@ -175,7 +175,7 @@ static void *Thread( void *p_data )
if
(
asprintf
(
&
psz_hotkey
,
"global-%s"
,
p_hotkey
->
psz_action
)
<
0
)
break
;
i_key
=
config_GetInt
(
p_intf
,
psz_hotkey
);
i_key
=
var_InheritInteger
(
p_intf
,
psz_hotkey
);
free
(
psz_hotkey
);
...
...
modules/control/globalhotkeys/xcb.c
View file @
cdf54698
...
...
@@ -344,7 +344,7 @@ static bool Mapping( intf_thread_t *p_intf )
break
;
const
int
i_vlc_action
=
p_hotkey
->
i_action
;
const
int
i_vlc_key
=
config_GetInt
(
p_intf
,
psz_hotkey
);
const
int
i_vlc_key
=
var_InheritInteger
(
p_intf
,
psz_hotkey
);
free
(
psz_hotkey
);
if
(
!
i_vlc_key
)
...
...
modules/meta_engine/folder.c
View file @
cdf54698
...
...
@@ -113,7 +113,7 @@ static int FindMeta( vlc_object_t *p_this )
{
if
(
i
==
-
1
)
/* higher priority : configured filename */
{
char
*
psz_userfile
=
config_GetPsz
(
p_this
,
"album-art-filename"
);
char
*
psz_userfile
=
var_InheritString
(
p_this
,
"album-art-filename"
);
if
(
!
psz_userfile
)
continue
;
snprintf
(
psz_filename
,
MAX_PATH
,
"%s%s"
,
psz_path
,
psz_userfile
);
...
...
modules/misc/audioscrobbler.c
View file @
cdf54698
...
...
@@ -731,11 +731,11 @@ static int Handshake( intf_thread_t *p_this )
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_sys_t
*
p_sys
=
p_this
->
p_sys
;
psz_username
=
config_GetPsz
(
p_this
,
"lastfm-username"
);
psz_username
=
var_InheritString
(
p_this
,
"lastfm-username"
);
if
(
!
psz_username
)
return
VLC_ENOMEM
;
psz_password
=
config_GetPsz
(
p_this
,
"lastfm-password"
);
psz_password
=
var_InheritString
(
p_this
,
"lastfm-password"
);
if
(
!
psz_password
)
{
free
(
psz_username
);
...
...
@@ -788,7 +788,7 @@ static int Handshake( intf_thread_t *p_this )
strncpy
(
p_sys
->
psz_auth_token
,
psz_auth_token
,
33
);
free
(
psz_auth_token
);
psz_scrobbler_url
=
config_GetPsz
(
p_this
,
"scrobbler-url"
);
psz_scrobbler_url
=
var_InheritString
(
p_this
,
"scrobbler-url"
);
if
(
!
psz_scrobbler_url
)
{
free
(
psz_username
);
...
...
modules/misc/dummy/interface.c
View file @
cdf54698
...
...
@@ -43,7 +43,7 @@ int OpenIntf ( vlc_object_t *p_this )
#ifdef WIN32
bool
b_quiet
;
b_quiet
=
config_GetInt
(
p_intf
,
"dummy-quiet"
);
b_quiet
=
var_InheritBool
(
p_intf
,
"dummy-quiet"
);
if
(
!
b_quiet
)
CONSOLE_INTRO_MSG
;
#endif
...
...
modules/misc/freetype.c
View file @
cdf54698
...
...
@@ -1348,7 +1348,7 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
p_region_out
->
i_x
=
p_region_in
->
i_x
;
p_region_out
->
i_y
=
p_region_in
->
i_y
;
if
(
config_GetInt
(
p_filter
,
"freetype-yuvp"
)
)
if
(
var_InheritBool
(
p_filter
,
"freetype-yuvp"
)
)
Render
(
p_filter
,
p_region_out
,
p_lines
,
result
.
x
,
result
.
y
);
else
RenderYUVA
(
p_filter
,
p_region_out
,
p_lines
,
result
.
x
,
result
.
y
);
...
...
@@ -2320,7 +2320,7 @@ static int RenderHtml( filter_t *p_filter, subpicture_region_t *p_region_out,
*/
if
((
rv
==
VLC_SUCCESS
)
&&
(
i_len
>
0
))
{
if
(
config_GetInt
(
p_filter
,
"freetype-yuvp"
)
)
if
(
var_InheritBool
(
p_filter
,
"freetype-yuvp"
)
)
{
Render
(
p_filter
,
p_region_out
,
p_lines
,
result
.
x
,
result
.
y
);
...
...
modules/misc/gnutls.c
View file @
cdf54698
...
...
@@ -976,7 +976,7 @@ gnutls_ServerSessionPrepare( tls_server_t *p_server )
gnutls_certificate_server_set_request
(
session
,
GNUTLS_CERT_REQUIRE
);
/* Session resumption support */
i_val
=
config_GetInt
(
p_server
,
"gnutls-cache-timeout"
);
i_val
=
var_InheritInteger
(
p_server
,
"gnutls-cache-timeout"
);
if
(
i_val
>=
0
)
gnutls_db_set_cache_expiration
(
session
,
i_val
);
gnutls_db_set_retrieve_function
(
session
,
cb_fetch
);
...
...
@@ -1077,7 +1077,7 @@ static int OpenServer (vlc_object_t *obj)
if
(
p_sys
==
NULL
)
return
VLC_ENOMEM
;
p_sys
->
i_cache_size
=
config_GetInt
(
obj
,
"gnutls-cache-size"
);
p_sys
->
i_cache_size
=
var_InheritInteger
(
obj
,
"gnutls-cache-size"
);
if
(
p_sys
->
i_cache_size
==
-
1
)
/* Duh, config subsystem exploded?! */
p_sys
->
i_cache_size
=
0
;
p_sys
->
p_cache
=
calloc
(
p_sys
->
i_cache_size
,
...
...
modules/misc/logger.c
View file @
cdf54698
...
...
@@ -232,7 +232,7 @@ static int Open( vlc_object_t *p_this )
if
(
p_sys
->
msg
.
i_mode
!=
MODE_SYSLOG
)
{
char
*
psz_file
=
config_GetPsz
(
p_intf
,
"logfile"
);
char
*
psz_file
=
var_InheritString
(
p_intf
,
"logfile"
);
if
(
!
psz_file
)
{
#ifdef __APPLE__
...
...
modules/misc/notify/growl_udp.c
View file @
cdf54698
...
...
@@ -260,9 +260,9 @@ static int CheckAndSend( vlc_object_t *p_this, uint8_t* p_data, int i_offset )
int
i
,
i_handle
;
struct
md5_s
md5
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
char
*
psz_password
=
config_GetPsz
(
p_intf
,
"growl-password"
);
char
*
psz_server
=
config_GetPsz
(
p_intf
,
"growl-server"
);
int
i_port
=
config_GetInt
(
p_intf
,
"growl-port"
);
char
*
psz_password
=
var_InheritString
(
p_intf
,
"growl-password"
);
char
*
psz_server
=
var_InheritString
(
p_intf
,
"growl-server"
);
int
i_port
=
var_InheritInteger
(
p_intf
,
"growl-port"
);
strcpy
(
(
char
*
)(
p_data
+
i_offset
),
psz_password
);
i
=
i_offset
+
strlen
(
psz_password
);
...
...
modules/misc/notify/msn.c
View file @
cdf54698
...
...
@@ -93,7 +93,7 @@ static int Open( vlc_object_t *p_this )
if
(
!
p_intf
->
p_sys
)
return
VLC_ENOMEM
;
p_intf
->
p_sys
->
psz_format
=
config_GetPsz
(
p_intf
,
"msn-format"
);
p_intf
->
p_sys
->
psz_format
=
var_InheritString
(
p_intf
,
"msn-format"
);
if
(
!
p_intf
->
p_sys
->
psz_format
)
{
msg_Dbg
(
p_intf
,
"no format provided"
);
...
...
modules/misc/notify/notify.c
View file @
cdf54698
...
...
@@ -307,7 +307,7 @@ static int Notify( vlc_object_t *p_this, const char *psz_temp, GdkPixbuf *pix,
notification
=
notify_notification_new
(
_
(
"Now Playing"
),
psz_temp
,
NULL
,
NULL
);
notify_notification_set_timeout
(
notification
,
config_GetInt
(
p_this
,
"notify-timeout"
)
);
var_InheritInteger
(
p_this
,
"notify-timeout"
)
);
notify_notification_set_urgency
(
notification
,
NOTIFY_URGENCY_LOW
);
if
(
pix
)
{
...
...
modules/misc/notify/telepathy.c
View file @
cdf54698
...
...
@@ -112,7 +112,7 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
p_intf
->
p_sys
->
psz_format
=
config_GetPsz
(
p_intf
,
"telepathy-format"
);
p_intf
->
p_sys
->
psz_format
=
var_InheritString
(
p_intf
,
"telepathy-format"
);
if
(
!
p_intf
->
p_sys
->
psz_format
)
{
msg_Dbg
(
p_intf
,
"no format provided"
);
...
...
modules/misc/notify/xosd.c
View file @
cdf54698
...
...
@@ -122,8 +122,8 @@ static int Open( vlc_object_t *p_this )
return
VLC_ENOMEM
;
/* Initialize library */
psz_font
=
config_GetPsz
(
p_intf
,
"xosd-font"
);
psz_colour
=
config_GetPsz
(
p_intf
,
"xosd-colour"
);
psz_font
=
var_InheritString
(
p_intf
,
"xosd-font"
);
psz_colour
=
var_InheritString
(
p_intf
,
"xosd-colour"
);
p_osd
=
xosd_create
(
1
);
if
(
p_osd
==
NULL
)
...
...
@@ -141,14 +141,14 @@ static int Open( vlc_object_t *p_this )
xosd_set_font
(
p_osd
,
psz_font
);
xosd_set_colour
(
p_osd
,
psz_colour
);
xosd_set_timeout
(
p_osd
,
3
);
xosd_set_pos
(
p_osd
,
config_GetInt
(
p_intf
,
"xosd-position"
)
?
xosd_set_pos
(
p_osd
,
var_InheritInteger
(
p_intf
,
"xosd-position"
)
?
XOSD_bottom:
XOSD_top
);
xosd_set_horizontal_offset
(
p_osd
,
config_GetInt
(
p_intf
,
"xosd-text-offset"
)
);
var_InheritInteger
(
p_intf
,
"xosd-text-offset"
)
);
xosd_set_vertical_offset
(
p_osd
,
config_GetInt
(
p_intf
,
"xosd-text-offset"
)
);
var_InheritInteger
(
p_intf
,
"xosd-text-offset"
)
);
xosd_set_shadow_offset
(
p_osd
,
config_GetInt
(
p_intf
,
"xosd-shadow-offset"
));
var_InheritInteger
(
p_intf
,
"xosd-shadow-offset"
));
/* Initialize to NULL */
xosd_display
(
p_osd
,
0
,
XOSD_string
,
"XOSD interface initialized"
);
...
...
modules/misc/osd/simple.c
View file @
cdf54698
...
...
@@ -75,7 +75,7 @@ int osd_parser_simpleOpen( vlc_object_t *p_this )
result
=
fscanf
(
fd
,
"%24s %255s"
,
action
,
path
);
/* override images path ? */
psz_path
=
config_GetPsz
(
p_this
,
"osdmenu-file-path"
);
psz_path
=
var_InheritString
(
p_this
,
"osdmenu-file-path"
);
if
(
psz_path
)
{
/* psz_path is not null and therefor path cannot be NULL
...
...
modules/misc/svg.c
View file @
cdf54698
...
...
@@ -158,7 +158,7 @@ static char *svg_GetTemplate( vlc_object_t *p_this )
char
*
psz_template
;
FILE
*
file
;
psz_filename
=
config_GetPsz
(
p_filter
,
"svg-template-file"
);
psz_filename
=
var_InheritString
(
p_filter
,
"svg-template-file"
);
if
(
!
psz_filename
||
(
psz_filename
[
0
]
==
0
)
)
{
/* No filename. Use a default value. */
...
...
modules/mux/asf.c
View file @
cdf54698
...
...
@@ -220,8 +220,8 @@ static int Open( vlc_object_t *p_this )
p_sys
->
p_tracks
=
vlc_array_new
();
p_sys
->
b_write_header
=
true
;
p_sys
->
i_packet_size
=
config_GetInt
(
p_mux
,
"sout-asf-packet-size"
);
p_sys
->
i_bitrate_override
=
config_GetInt
(
p_mux
,
"sout-asf-bitrate-override"
);
p_sys
->
i_packet_size
=
var_InheritInteger
(
p_mux
,
"sout-asf-packet-size"
);
p_sys
->
i_bitrate_override
=
var_InheritInteger
(
p_mux
,
"sout-asf-bitrate-override"
);
msg_Dbg
(
p_mux
,
"Packet size %d"
,
p_sys
->
i_packet_size
);
if
(
p_sys
->
i_bitrate_override
)
msg_Dbg
(
p_mux
,
"Bitrate override %"
PRId64
,
p_sys
->
i_bitrate_override
);
...
...
modules/services_discovery/sap.c
View file @
cdf54698
...
...
@@ -447,7 +447,7 @@ static void Close( vlc_object_t *p_this )
FREENULL
(
p_sys
->
pi_fd
);
#if 0
if(
config_GetInt
( p_sd, "sap-cache" ) )
if(
var_InheritBool
( p_sd, "sap-cache" ) )
{
CacheSave( p_sd );
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment