Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
94ae9717
Commit
94ae9717
authored
Aug 13, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation warnings and remove duplicated variables.
parent
7f0b979c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
src/input/var.c
src/input/var.c
+14
-11
No files found.
src/input/var.c
View file @
94ae9717
...
...
@@ -283,9 +283,12 @@ void input_ControlVarNavigation( input_thread_t *p_input )
/* Create title and navigation */
val
.
psz_string
=
malloc
(
sizeof
(
"title "
)
+
5
);
if
(
!
val
.
psz_string
)
return
;
for
(
i
=
0
;
i
<
p_input
->
p
->
i_title
;
i
++
)
{
vlc_value_t
val2
,
text
,
text
2
;
vlc_value_t
val2
,
text2
;
int
j
;
/* Add Navigation entries */
...
...
@@ -299,8 +302,9 @@ void input_ControlVarNavigation( input_thread_t *p_input )
if
(
p_input
->
p
->
title
[
i
]
->
psz_name
==
NULL
||
*
p_input
->
p
->
title
[
i
]
->
psz_name
==
'\0'
)
{
asprintf
(
&
text
.
psz_string
,
_
(
"Title %i"
),
i
+
p_input
->
p
->
i_title_offset
);
if
(
asprintf
(
&
text
.
psz_string
,
_
(
"Title %i"
),
i
+
p_input
->
p
->
i_title_offset
)
==
-
1
)
continue
;
}
else
{
...
...
@@ -322,8 +326,9 @@ void input_ControlVarNavigation( input_thread_t *p_input )
*
p_input
->
p
->
title
[
i
]
->
seekpoint
[
j
]
->
psz_name
==
'\0'
)
{
/* Default value */
asprintf
(
&
text2
.
psz_string
,
_
(
"Chapter %i"
),
j
+
p_input
->
p
->
i_seekpoint_offset
);
if
(
asprintf
(
&
text2
.
psz_string
,
_
(
"Chapter %i"
),
j
+
p_input
->
p
->
i_seekpoint_offset
)
==
-
1
)
continue
;
}
else
{
...
...
@@ -347,7 +352,7 @@ void input_ControlVarNavigation( input_thread_t *p_input )
void
input_ControlVarTitle
(
input_thread_t
*
p_input
,
int
i_title
)
{
input_title_t
*
t
=
p_input
->
p
->
title
[
i_title
];
vlc_value_t
val
;
vlc_value_t
val
,
text
;
int
i
;
/* Create/Destroy command variables */
...
...
@@ -358,8 +363,6 @@ void input_ControlVarTitle( input_thread_t *p_input, int i_title )
}
else
if
(
var_Get
(
p_input
,
"next-chapter"
,
&
val
)
!=
VLC_SUCCESS
)
{
vlc_value_t
text
;
var_Create
(
p_input
,
"next-chapter"
,
VLC_VAR_VOID
);
text
.
psz_string
=
_
(
"Next chapter"
);
var_Change
(
p_input
,
"next-chapter"
,
VLC_VAR_SETTEXT
,
&
text
,
NULL
);
...
...
@@ -375,15 +378,15 @@ void input_ControlVarTitle( input_thread_t *p_input, int i_title )
var_Change
(
p_input
,
"chapter"
,
VLC_VAR_CLEARCHOICES
,
NULL
,
NULL
);
for
(
i
=
0
;
i
<
t
->
i_seekpoint
;
i
++
)
{
vlc_value_t
text
;
val
.
i_int
=
i
;
if
(
t
->
seekpoint
[
i
]
->
psz_name
==
NULL
||
*
t
->
seekpoint
[
i
]
->
psz_name
==
'\0'
)
{
/* Default value */
asprintf
(
&
text
.
psz_string
,
_
(
"Chapter %i"
),
i
+
p_input
->
p
->
i_seekpoint_offset
);
if
(
asprintf
(
&
text
.
psz_string
,
_
(
"Chapter %i"
),
i
+
p_input
->
p
->
i_seekpoint_offset
)
==
-
1
)
continue
;
}
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