Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f8763a6c
Commit
f8763a6c
authored
Jun 20, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RC: fix segmentation fault due to input state changes - fixes #1620
parent
aeb8ed0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
include/vlc_input.h
include/vlc_input.h
+3
-1
modules/control/rc.c
modules/control/rc.c
+14
-2
No files found.
include/vlc_input.h
View file @
f8763a6c
...
...
@@ -525,6 +525,8 @@ static inline void vlc_input_attachment_Delete( input_attachment_t *a )
*****************************************************************************/
/* "state" value */
/* NOTE: you need to update ppsz_input_state in the RC interface
* if you modify this list. */
enum
input_state_e
{
INIT_S
=
0
,
...
...
@@ -536,7 +538,7 @@ enum input_state_e
FORWARD_S
,
BACKWARD_S
,
END_S
,
ERROR_S
ERROR_S
,
};
/* "rate" default, min/max
...
...
modules/control/rc.c
View file @
f8763a6c
...
...
@@ -67,7 +67,19 @@
#define MAX_LINE_LENGTH 256
#define STATUS_CHANGE "status change: "
static
const
char
*
ppsz_input_state
[]
=
{
N_
(
"Initializing"
),
N_
(
"Opening"
),
N_
(
"Buffer"
),
N_
(
"Play"
),
N_
(
"Pause"
),
N_
(
"Stop"
),
N_
(
"Error"
)
};
/* input_state_e from <vlc_input.h> */
static
const
char
*
ppsz_input_state
[]
=
{
N_
(
"Initializing"
),
N_
(
"Opening"
),
N_
(
"Buffer"
),
N_
(
"Play"
),
N_
(
"Pause"
),
N_
(
"Stop"
),
N_
(
"Forward"
),
N_
(
"Backward"
),
N_
(
"End"
),
N_
(
"Error"
),
};
/*****************************************************************************
* Local prototypes
...
...
@@ -1000,7 +1012,7 @@ static int StateChanged( vlc_object_t *p_this, char const *psz_cmd,
cmd
[
0
]
=
'\0'
;
}
/* var_GetInteger( p_input, "state" ) */
msg_rc
(
STATUS_CHANGE
"( %s state: %d ): %s"
,
&
cmd
[
0
]
,
newval
.
i_int
,
cmd
,
newval
.
i_int
,
ppsz_input_state
[
newval
.
i_int
]
);
vlc_object_release
(
p_playlist
);
vlc_object_release
(
p_input
);
...
...
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