Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
2c5cd248
Commit
2c5cd248
authored
Feb 11, 2008
by
Jean-Paul Saman
Browse files
Simplify rc stats command
parent
daebd34f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/rc.c
View file @
2c5cd248
...
...
@@ -126,7 +126,6 @@ struct intf_sys_t
/* status changes */
vlc_mutex_t
status_lock
;
playlist_status_t
i_last_state
;
vlc_bool_t
b_statistics
;
#ifdef WIN32
HANDLE
hConsoleIn
;
...
...
@@ -324,7 +323,6 @@ static int Activate( vlc_object_t *p_this )
p_intf
->
p_sys
->
psz_unix_path
=
psz_unix_path
;
vlc_mutex_init
(
p_intf
,
&
p_intf
->
p_sys
->
status_lock
);
p_intf
->
p_sys
->
i_last_state
=
PLAYLIST_STOPPED
;
p_intf
->
p_sys
->
b_statistics
=
VLC_FALSE
;
/* Non-buffered stdout */
setvbuf
(
stdout
,
(
char
*
)
NULL
,
_IOLBF
,
0
);
...
...
@@ -583,13 +581,6 @@ static void Run( intf_thread_t *p_intf )
}
}
if
(
p_input
&&
p_intf
->
p_sys
->
b_statistics
)
{
vlc_mutex_lock
(
&
input_GetItem
(
p_input
)
->
lock
);
updateStatistics
(
p_intf
,
input_GetItem
(
p_input
)
);
vlc_mutex_unlock
(
&
input_GetItem
(
p_input
)
->
lock
);
}
/* Is there something to do? */
if
(
!
b_complete
)
continue
;
...
...
@@ -1959,11 +1950,9 @@ static int Statistics ( vlc_object_t *p_this, char const *psz_cmd,
if
(
!
strcmp
(
psz_cmd
,
"stats"
)
)
{
p_intf
->
p_sys
->
b_statistics
=
!
p_intf
->
p_sys
->
b_statistics
;
if
(
p_intf
->
p_sys
->
b_statistics
)
msg_rc
(
_
(
"statistics update on"
));
else
msg_rc
(
_
(
"statistics update off"
));
vlc_mutex_lock
(
&
input_GetItem
(
p_input
)
->
lock
);
updateStatistics
(
p_intf
,
input_GetItem
(
p_input
)
);
vlc_mutex_unlock
(
&
input_GetItem
(
p_input
)
->
lock
);
}
/*
* sanity check
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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