Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
c6f168ff
Commit
c6f168ff
authored
Aug 23, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: do not squash VLC_VERBOSE environment variable setting
It did not work at all anymore.
parent
0e3168b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/libvlc.c
src/libvlc.c
+8
-8
No files found.
src/libvlc.c
View file @
c6f168ff
...
@@ -102,7 +102,6 @@ libvlc_int_t * libvlc_InternalCreate( void )
...
@@ -102,7 +102,6 @@ libvlc_int_t * libvlc_InternalCreate( void )
{
{
libvlc_int_t
*
p_libvlc
;
libvlc_int_t
*
p_libvlc
;
libvlc_priv_t
*
priv
;
libvlc_priv_t
*
priv
;
char
*
psz_env
=
NULL
;
/* Now that the thread system is initialized, we don't have much, but
/* Now that the thread system is initialized, we don't have much, but
* at least we have variables */
* at least we have variables */
...
@@ -117,13 +116,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
...
@@ -117,13 +116,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
priv
->
p_ml
=
NULL
;
priv
->
p_ml
=
NULL
;
priv
->
p_dialog_provider
=
NULL
;
priv
->
p_dialog_provider
=
NULL
;
priv
->
p_vlm
=
NULL
;
priv
->
p_vlm
=
NULL
;
priv
->
i_verbose
=
3
;
/* initial value until config is loaded */
/* Find verbosity from VLC_VERBOSE environment variable */
psz_env
=
getenv
(
"VLC_VERBOSE"
);
if
(
psz_env
!=
NULL
)
priv
->
i_verbose
=
atoi
(
psz_env
);
else
priv
->
i_verbose
=
3
;
#if defined( HAVE_ISATTY ) && !defined( WIN32 )
#if defined( HAVE_ISATTY ) && !defined( WIN32 )
priv
->
b_color
=
isatty
(
STDERR_FILENO
);
/* 2 is for stderr */
priv
->
b_color
=
isatty
(
STDERR_FILENO
);
/* 2 is for stderr */
#else
#else
...
@@ -172,6 +165,13 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
...
@@ -172,6 +165,13 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
}
}
priv
->
i_verbose
=
var_InheritInteger
(
p_libvlc
,
"verbose"
);
priv
->
i_verbose
=
var_InheritInteger
(
p_libvlc
,
"verbose"
);
/* Find verbosity from VLC_VERBOSE environment variable */
{
char
*
env
=
getenv
(
"VLC_VERBOSE"
);
if
(
env
!=
NULL
)
priv
->
i_verbose
=
atoi
(
env
);
}
/* Announce who we are (TODO: only first instance?) */
/* Announce who we are (TODO: only first instance?) */
msg_Dbg
(
p_libvlc
,
"VLC media player - %s"
,
VERSION_MESSAGE
);
msg_Dbg
(
p_libvlc
,
"VLC media player - %s"
,
VERSION_MESSAGE
);
msg_Dbg
(
p_libvlc
,
"%s"
,
COPYRIGHT_MESSAGE
);
msg_Dbg
(
p_libvlc
,
"%s"
,
COPYRIGHT_MESSAGE
);
...
...
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