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
460b1fca
Commit
460b1fca
authored
Sep 06, 2004
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+ src/input/var.c: when starting a title, don't recreate next/prev-chapter
and add callbacks if they already exist
parent
381fcdb7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/input/var.c
src/input/var.c
+6
-6
No files found.
src/input/var.c
View file @
460b1fca
...
@@ -333,7 +333,12 @@ void input_ControlVarTitle( input_thread_t *p_input, int i_title )
...
@@ -333,7 +333,12 @@ void input_ControlVarTitle( input_thread_t *p_input, int i_title )
int
i
;
int
i
;
/* Create/Destroy command variables */
/* Create/Destroy command variables */
if
(
t
->
i_seekpoint
>
1
)
if
(
t
->
i_seekpoint
<=
1
)
{
var_Destroy
(
p_input
,
"next-chapter"
);
var_Destroy
(
p_input
,
"prev-chapter"
);
}
else
if
(
var_Get
(
p_input
,
"next-chapter"
,
&
val
)
!=
VLC_SUCCESS
)
{
{
vlc_value_t
text
;
vlc_value_t
text
;
...
@@ -347,11 +352,6 @@ void input_ControlVarTitle( input_thread_t *p_input, int i_title )
...
@@ -347,11 +352,6 @@ void input_ControlVarTitle( input_thread_t *p_input, int i_title )
var_Change
(
p_input
,
"prev-chapter"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_Change
(
p_input
,
"prev-chapter"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
var_AddCallback
(
p_input
,
"prev-chapter"
,
SeekpointCallback
,
NULL
);
var_AddCallback
(
p_input
,
"prev-chapter"
,
SeekpointCallback
,
NULL
);
}
}
else
{
var_Destroy
(
p_input
,
"next-chapter"
);
var_Destroy
(
p_input
,
"prev-chapter"
);
}
/* Build chapter list */
/* Build chapter list */
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_CLEARCHOICES
,
NULL
,
NULL
);
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_CLEARCHOICES
,
NULL
,
NULL
);
...
...
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