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
a5b73abf
Commit
a5b73abf
authored
Aug 19, 2005
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup of status reporting.
parent
f06d45e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
37 deletions
+39
-37
modules/control/rc.c
modules/control/rc.c
+39
-37
No files found.
modules/control/rc.c
View file @
a5b73abf
...
@@ -731,32 +731,6 @@ static void Run( intf_thread_t *p_intf )
...
@@ -731,32 +731,6 @@ static void Run( intf_thread_t *p_intf )
else
else
{
{
msg_rc
(
"1"
);
msg_rc
(
"1"
);
/* FIXME: This is a hack */
/* Replay the current state of the system. */
msg_rc
(
STATUS_CHANGE
"( New input: %s )"
,
p_input
->
input
.
p_item
->
psz_uri
);
msg_rc
(
STATUS_CHANGE
"( audio volume: %d )"
,
config_GetInt
(
p_intf
,
"volume"
));
if
(
p_playlist
)
{
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
switch
(
p_playlist
->
status
.
i_status
)
{
case
PLAYLIST_STOPPED
:
msg_rc
(
STATUS_CHANGE
"( stop state: 0 )"
);
break
;
case
PLAYLIST_RUNNING
:
msg_rc
(
STATUS_CHANGE
"( play state: 1 )"
);
break
;
case
PLAYLIST_PAUSED
:
msg_rc
(
STATUS_CHANGE
"( pause state: 2 )"
);
break
;
default:
msg_rc
(
STATUS_CHANGE
"( state unknown )"
);
break
;
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
/* End of current playlist status */
}
}
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"get_time"
)
)
else
if
(
!
strcmp
(
psz_cmd
,
"get_time"
)
)
...
@@ -1285,8 +1259,35 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1285,8 +1259,35 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
}
}
}
}
else
if
(
!
strcmp
(
psz_cmd
,
"playlist"
)
)
else
if
(
!
strcmp
(
psz_cmd
,
"playlist"
)
)
{
if
(
!
strcmp
(
newval
.
psz_string
,
"status"
)
)
{
/* Replay the current state of the system. */
msg_rc
(
STATUS_CHANGE
"( New input: %s )"
,
p_playlist
->
p_input
->
input
.
p_item
->
psz_uri
);
msg_rc
(
STATUS_CHANGE
"( audio volume: %d )"
,
config_GetInt
(
p_intf
,
"volume"
));
vlc_mutex_lock
(
&
p_playlist
->
object_lock
);
switch
(
p_playlist
->
status
.
i_status
)
{
case
PLAYLIST_STOPPED
:
msg_rc
(
STATUS_CHANGE
"( stop state: 0 )"
);
break
;
case
PLAYLIST_RUNNING
:
msg_rc
(
STATUS_CHANGE
"( play state: 1 )"
);
break
;
case
PLAYLIST_PAUSED
:
msg_rc
(
STATUS_CHANGE
"( pause state: 2 )"
);
break
;
default:
msg_rc
(
STATUS_CHANGE
"( state unknown )"
);
break
;
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
else
{
{
int
i
;
int
i
;
for
(
i
=
0
;
i
<
p_playlist
->
i_size
;
i
++
)
for
(
i
=
0
;
i
<
p_playlist
->
i_size
;
i
++
)
{
{
msg_rc
(
"|%s%s %s|%s|"
,
i
==
p_playlist
->
i_index
?
"*"
:
" "
,
msg_rc
(
"|%s%s %s|%s|"
,
i
==
p_playlist
->
i_index
?
"*"
:
" "
,
...
@@ -1300,6 +1301,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -1300,6 +1301,7 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
msg_rc
(
"| no entries"
);
msg_rc
(
"| no entries"
);
}
}
}
}
}
/*
/*
* sanity check
* 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