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
5afb7baa
Commit
5afb7baa
authored
May 15, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/input/input_programs.c: a few fixes to the navigation object variable.
parent
d5791c9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
src/input/input_programs.c
src/input/input_programs.c
+19
-5
No files found.
src/input/input_programs.c
View file @
5afb7baa
...
...
@@ -2,7 +2,7 @@
* input_programs.c: es_descriptor_t, pgrm_descriptor_t management
*****************************************************************************
* Copyright (C) 1999-2002 VideoLAN
* $Id: input_programs.c,v 1.11
1 2003/05/15 21:31:53
gbazin Exp $
* $Id: input_programs.c,v 1.11
2 2003/05/15 23:05:59
gbazin Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
...
...
@@ -356,7 +356,7 @@ input_area_t * input_AddArea( input_thread_t * p_input,
val
.
psz_string
=
malloc
(
sizeof
(
"title "
)
+
5
);
if
(
val
.
psz_string
)
{
vlc_value_t
val2
;
vlc_value_t
val2
,
text
,
text2
;
sprintf
(
val
.
psz_string
,
"title %2i"
,
i_area_id
);
var_Destroy
(
p_input
,
val
.
psz_string
);
...
...
@@ -365,14 +365,28 @@ input_area_t * input_AddArea( input_thread_t * p_input,
var_AddCallback
(
p_input
,
val
.
psz_string
,
NavigationCallback
,
(
void
*
)(
int
)
i_area_id
);
var_Change
(
p_input
,
"navigation"
,
VLC_VAR_ADDCHOICE
,
&
val
,
NULL
);
text
.
psz_string
=
malloc
(
strlen
(
_
(
"Title %i"
)
)
+
20
);
if
(
text
.
psz_string
)
sprintf
(
text
.
psz_string
,
_
(
"Title %i"
),
i_area_id
);
var_Change
(
p_input
,
"navigation"
,
VLC_VAR_ADDCHOICE
,
&
val
,
&
text
);
if
(
text
.
psz_string
)
free
(
text
.
psz_string
);
text2
.
psz_string
=
malloc
(
strlen
(
_
(
"Chapter %i"
)
)
+
20
);
for
(
i
=
1
;
i
<=
i_part_nb
;
i
++
)
{
val2
.
i_int
=
i
;
if
(
text2
.
psz_string
)
sprintf
(
text2
.
psz_string
,
_
(
"Chapter %i"
),
i
);
var_Change
(
p_input
,
val
.
psz_string
,
VLC_VAR_ADDCHOICE
,
&
val2
,
NULL
);
VLC_VAR_ADDCHOICE
,
&
val2
,
&
text2
);
}
if
(
text2
.
psz_string
)
free
(
text2
.
psz_string
);
}
return
p_area
;
...
...
@@ -1060,7 +1074,7 @@ static int NavigationCallback( vlc_object_t *p_this, char const *psz_cmd,
p_input
->
stream
.
pp_areas
[
i_area_id
]
->
i_part_nb
)
)
{
input_area_t
*
p_area
=
p_input
->
stream
.
pp_areas
[
i_area_id
];
p_
input
->
stream
.
p_selected_
area
->
i_part
=
newval
.
i_int
;
p_area
->
i_part
=
newval
.
i_int
;
vlc_mutex_unlock
(
&
p_input
->
stream
.
stream_lock
);
input_ChangeArea
(
p_input
,
p_area
);
input_SetStatus
(
p_input
,
INPUT_STATUS_PLAY
);
...
...
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