Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
2c5cd248
Commit
2c5cd248
authored
Feb 11, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify rc stats command
parent
daebd34f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
modules/control/rc.c
modules/control/rc.c
+3
-14
No files found.
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
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