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
821a5903
Commit
821a5903
authored
Apr 11, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sanitize STATUS_CHANGE messages.
parent
a0f5af02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
include/vlc_input.h
include/vlc_input.h
+2
-0
modules/control/rc.c
modules/control/rc.c
+13
-9
No files found.
include/vlc_input.h
View file @
821a5903
...
...
@@ -544,6 +544,8 @@ enum input_state_e
ERROR_S
};
static
const
char
*
ppsz_input_state
[]
=
{
N_
(
"Initializing"
),
N_
(
"Opening"
),
N_
(
"Buffer"
),
N_
(
"Play"
),
N_
(
"Pause"
),
N_
(
"Stop"
),
N_
(
"Error"
)
}
/* "rate" default, min/max
* A rate below 1000 plays the movie faster,
* A rate above 1000 plays the movie slower.
...
...
modules/control/rc.c
View file @
821a5903
...
...
@@ -548,21 +548,21 @@ static void Run( intf_thread_t *p_intf )
(
p_playlist
->
status
.
i_status
==
PLAYLIST_STOPPED
)
)
{
p_intf
->
p_sys
->
i_last_state
=
PLAYLIST_STOPPED
;
msg_rc
(
STATUS_CHANGE
"( stop state:
0
)"
);
msg_rc
(
STATUS_CHANGE
"( stop state:
5
)"
);
}
else
if
(
(
p_intf
->
p_sys
->
i_last_state
!=
p_playlist
->
status
.
i_status
)
&&
(
p_playlist
->
status
.
i_status
==
PLAYLIST_RUNNING
)
)
{
p_intf
->
p_sys
->
i_last_state
=
p_playlist
->
status
.
i_status
;
msg_rc
(
STATUS_CHANGE
"( play state: 1
)"
);
msg_rc
(
STATUS_CHANGE
"( play state: 3
)"
);
}
else
if
(
(
p_intf
->
p_sys
->
i_last_state
!=
p_playlist
->
status
.
i_status
)
&&
(
p_playlist
->
status
.
i_status
==
PLAYLIST_PAUSED
)
)
{
p_intf
->
p_sys
->
i_last_state
=
p_playlist
->
status
.
i_status
;
msg_rc
(
STATUS_CHANGE
"( pause state:
2
)"
);
msg_rc
(
STATUS_CHANGE
"( pause state:
4
)"
);
}
vlc_mutex_unlock
(
&
p_playlist
->
object_lock
);
}
...
...
@@ -999,7 +999,9 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd,
default:
cmd
[
0
]
=
'\0'
;
}
/* var_GetInteger( p_input, "state" ) */
msg_rc
(
STATUS_CHANGE
"( %s state: %d )"
,
&
cmd
[
0
],
newval
.
i_int
);
msg_rc
(
STATUS_CHANGE
"( %s state: %d ): %s"
,
&
cmd
[
0
],
newval
.
i_int
,
ppsz_input_state
[
newval
.
i_int
]
);
vlc_object_release
(
p_playlist
);
}
vlc_object_release
(
p_input
);
...
...
@@ -1479,16 +1481,16 @@ static int Playlist( vlc_object_t *p_this, char const *psz_cmd,
switch
(
p_playlist
->
status
.
i_status
)
{
case
PLAYLIST_STOPPED
:
msg_rc
(
STATUS_CHANGE
"( stop state:
0
)"
);
msg_rc
(
STATUS_CHANGE
"( stop state:
5
)"
);
break
;
case
PLAYLIST_RUNNING
:
msg_rc
(
STATUS_CHANGE
"( play state:
1
)"
);
msg_rc
(
STATUS_CHANGE
"( play state:
3
)"
);
break
;
case
PLAYLIST_PAUSED
:
msg_rc
(
STATUS_CHANGE
"( pause state:
2
)"
);
msg_rc
(
STATUS_CHANGE
"( pause state:
4
)"
);
break
;
default:
msg_rc
(
STATUS_CHANGE
"(
state unknown
)"
);
msg_rc
(
STATUS_CHANGE
"(
unknown state: -1
)"
);
break
;
}
PL_UNLOCK
;
...
...
@@ -1715,7 +1717,9 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
}
else
if
(
!
strcmp
(
psz_cmd
,
"snapshot"
)
)
{
i_error
=
var_Set
(
p_vout
,
psz_variable
,
newval
);
vlc_value_t
val
;
val
.
b_bool
=
VLC_TRUE
;
i_error
=
var_Set
(
p_vout
,
psz_variable
,
val
);
}
else
{
...
...
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