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
7dc473a3
Commit
7dc473a3
authored
Nov 12, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: simplify and make one test usefull.
parent
837bf32e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
modules/control/rc.c
modules/control/rc.c
+4
-15
No files found.
modules/control/rc.c
View file @
7dc473a3
...
@@ -1865,7 +1865,7 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1865,7 +1865,7 @@ static int Menu( vlc_object_t *p_this, char const *psz_cmd,
static
int
Statistics
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
static
int
Statistics
(
vlc_object_t
*
p_this
,
char
const
*
psz_cmd
,
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
vlc_value_t
oldval
,
vlc_value_t
newval
,
void
*
p_data
)
{
{
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
newval
);
VLC_UNUSED
(
p_data
);
VLC_UNUSED
(
psz_cmd
);
VLC_UNUSED
(
oldval
);
VLC_UNUSED
(
newval
);
VLC_UNUSED
(
p_data
);
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_this
;
input_thread_t
*
p_input
=
input_thread_t
*
p_input
=
playlist_CurrentInput
(
p_intf
->
p_sys
->
p_playlist
);
playlist_CurrentInput
(
p_intf
->
p_sys
->
p_playlist
);
...
@@ -1873,20 +1873,7 @@ static int Statistics ( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1873,20 +1873,7 @@ static int Statistics ( vlc_object_t *p_this, char const *psz_cmd,
if
(
!
p_input
)
if
(
!
p_input
)
return
VLC_ENOOBJ
;
return
VLC_ENOOBJ
;
if
(
!
strcmp
(
psz_cmd
,
"stats"
)
)
{
vlc_mutex_lock
(
&
input_GetItem
(
p_input
)
->
lock
);
updateStatistics
(
p_intf
,
input_GetItem
(
p_input
)
);
updateStatistics
(
p_intf
,
input_GetItem
(
p_input
)
);
vlc_mutex_unlock
(
&
input_GetItem
(
p_input
)
->
lock
);
}
/*
* sanity check
*/
else
{
msg_rc
(
"%s"
,
_
(
"Unknown command!"
)
);
}
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
@@ -1895,6 +1882,7 @@ static int updateStatistics( intf_thread_t *p_intf, input_item_t *p_item )
...
@@ -1895,6 +1882,7 @@ static int updateStatistics( intf_thread_t *p_intf, input_item_t *p_item )
{
{
if
(
!
p_item
)
return
VLC_EGENERIC
;
if
(
!
p_item
)
return
VLC_EGENERIC
;
vlc_mutex_lock
(
&
p_item
->
lock
);
vlc_mutex_lock
(
&
p_item
->
p_stats
->
lock
);
vlc_mutex_lock
(
&
p_item
->
p_stats
->
lock
);
msg_rc
(
"+----[ begin of statistical info ]"
);
msg_rc
(
"+----[ begin of statistical info ]"
);
...
@@ -1937,6 +1925,7 @@ static int updateStatistics( intf_thread_t *p_intf, input_item_t *p_item )
...
@@ -1937,6 +1925,7 @@ static int updateStatistics( intf_thread_t *p_intf, input_item_t *p_item )
msg_rc
(
"|"
);
msg_rc
(
"|"
);
msg_rc
(
"+----[ end of statistical info ]"
);
msg_rc
(
"+----[ end of statistical info ]"
);
vlc_mutex_unlock
(
&
p_item
->
p_stats
->
lock
);
vlc_mutex_unlock
(
&
p_item
->
p_stats
->
lock
);
vlc_mutex_unlock
(
&
p_item
->
lock
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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