Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d5f982b3
Commit
d5f982b3
authored
Feb 10, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the verbose callback.
It was not thread-safe, and only used by ncurses (fixed earlier).
parent
3af97bb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
22 deletions
+4
-22
src/libvlc.c
src/libvlc.c
+4
-22
No files found.
src/libvlc.c
View file @
d5f982b3
...
...
@@ -222,9 +222,6 @@ static void PauseConsole ( void );
#endif
static
int
ConsoleWidth
(
void
);
static
int
VerboseCallback
(
vlc_object_t
*
,
char
const
*
,
vlc_value_t
,
vlc_value_t
,
void
*
);
static
void
InitDeviceValues
(
libvlc_int_t
*
);
static
vlc_mutex_t
global_lock
=
VLC_STATIC_MUTEX
;
...
...
@@ -730,14 +727,14 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
free
(
psz_verbose_objects
);
}
/* Last change to set the verbosity. Once we start interfaces and other
* threads, verbosity becomes read-only. */
var_Create
(
p_libvlc
,
"verbose"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
if
(
config_GetInt
(
p_libvlc
,
"quiet"
)
>
0
)
{
va
l
.
i_int
=
-
1
;
var_Set
(
p_libvlc
,
"verbose"
,
val
)
;
va
r_SetInteger
(
p_libvlc
,
"verbose"
,
-
1
)
;
priv
->
i_verbose
=
-
1
;
}
var_AddCallback
(
p_libvlc
,
"verbose"
,
VerboseCallback
,
NULL
);
var_TriggerCallback
(
p_libvlc
,
"verbose"
);
if
(
priv
->
b_color
)
priv
->
b_color
=
config_GetInt
(
p_libvlc
,
"color"
)
>
0
;
...
...
@@ -2075,21 +2072,6 @@ static int ConsoleWidth( void )
return
i_width
;
}
static
int
VerboseCallback
(
vlc_object_t
*
p_this
,
const
char
*
psz_variable
,
vlc_value_t
old_val
,
vlc_value_t
new_val
,
void
*
param
)
{
libvlc_int_t
*
p_libvlc
=
(
libvlc_int_t
*
)
p_this
;
(
void
)
psz_variable
;
(
void
)
old_val
;
(
void
)
param
;
if
(
new_val
.
i_int
>=
-
1
)
{
libvlc_priv
(
p_libvlc
)
->
i_verbose
=
__MIN
(
new_val
.
i_int
,
2
);
}
return
VLC_SUCCESS
;
}
/*****************************************************************************
* InitDeviceValues: initialize device values
*****************************************************************************
...
...
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