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
1a912ab7
Commit
1a912ab7
authored
Jun 09, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly update "title %2i" variable.
It is a partial revert of [
a8c9c25d
]
parent
ef8b5bf3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
src/input/event.c
src/input/event.c
+7
-1
src/input/var.c
src/input/var.c
+0
-10
No files found.
src/input/event.c
View file @
1a912ab7
...
@@ -149,10 +149,16 @@ void input_SendEventSeekpoint( input_thread_t *p_input, int i_title, int i_seekp
...
@@ -149,10 +149,16 @@ void input_SendEventSeekpoint( input_thread_t *p_input, int i_title, int i_seekp
{
{
vlc_value_t
val
;
vlc_value_t
val
;
VLC_UNUSED
(
i_title
);
/* "chapter" */
val
.
i_int
=
i_seekpoint
;
val
.
i_int
=
i_seekpoint
;
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
/* "title %2i" */
char
psz_title
[
10
];
snprintf
(
psz_title
,
sizeof
(
psz_title
),
"title %2i"
,
i_title
);
var_Change
(
p_input
,
psz_title
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
/* */
Trigger
(
p_input
,
INPUT_EVENT_CHAPTER
);
Trigger
(
p_input
,
INPUT_EVENT_CHAPTER
);
}
}
...
...
src/input/var.c
View file @
1a912ab7
...
@@ -711,16 +711,6 @@ static int SeekpointCallback( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -711,16 +711,6 @@ static int SeekpointCallback( vlc_object_t *p_this, char const *psz_cmd,
else
else
{
{
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_SEEKPOINT
,
&
newval
);
input_ControlPush
(
p_input
,
INPUT_CONTROL_SET_SEEKPOINT
,
&
newval
);
val
.
i_int
=
newval
.
i_int
;
}
/* Actualize "title %2i" variable */
if
(
val
.
i_int
>=
0
&&
val
.
i_int
<
count
.
i_int
)
{
int
i_title
=
var_GetInteger
(
p_input
,
"title"
);
char
psz_titlevar
[
10
]
=
{
0
};
snprintf
(
psz_titlevar
,
10
,
"title %2i"
,
i_title
);
var_Change
(
p_input
,
psz_titlevar
,
VLC_VAR_SETVALUE
,
&
val
,
NULL
);
}
}
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