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
8eb251e5
Commit
8eb251e5
authored
Nov 30, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation warning (const variables)
parent
2e554fa9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
41 deletions
+45
-41
modules/codec/cmml/cmml.c
modules/codec/cmml/cmml.c
+4
-4
modules/codec/cmml/xtag.c
modules/codec/cmml/xtag.c
+39
-35
modules/codec/cmml/xtag.h
modules/codec/cmml/xtag.h
+2
-2
No files found.
modules/codec/cmml/cmml.c
View file @
8eb251e5
...
...
@@ -267,8 +267,8 @@ static void ParseText( decoder_t *p_dec, block_t *p_block )
val
.
p_address
=
psz_tmp
;
if
(
var_Set
(
p_dec
,
"psz-current-anchor-url"
,
val
)
!=
VLC_SUCCESS
)
{
(
void
)
var_Create
(
p_dec
,
"psz-current-anchor-url"
,
VLC_VAR_ADDRESS
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_dec
,
"psz-current-anchor-url"
,
VLC_VAR_ADDRESS
|
VLC_VAR_DOINHERIT
);
msg_Dbg
(
p_dec
,
"creating psz-current-anchor-url"
);
if
(
var_Set
(
p_dec
,
"psz-current-anchor-url"
,
val
)
!=
VLC_SUCCESS
)
msg_Dbg
(
p_dec
,
"var_Set of psz-current-anchor-url failed"
);
...
...
@@ -282,8 +282,8 @@ static void ParseText( decoder_t *p_dec, block_t *p_block )
val
.
p_address
=
psz_tmp
;
if
(
var_Set
(
p_dec
,
"psz-current-anchor-description"
,
val
)
!=
VLC_SUCCESS
)
{
(
void
)
var_Create
(
p_dec
,
"psz-current-anchor-description"
,
VLC_VAR_ADDRESS
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_dec
,
"psz-current-anchor-description"
,
VLC_VAR_ADDRESS
|
VLC_VAR_DOINHERIT
);
msg_Dbg
(
p_dec
,
"creating psz-current-anchor-description"
);
if
(
var_Set
(
p_dec
,
"psz-current-anchor-description"
,
val
)
!=
VLC_SUCCESS
)
msg_Dbg
(
p_dec
,
"var_Set of psz-current-anchor-description failed"
);
...
...
modules/codec/cmml/xtag.c
View file @
8eb251e5
...
...
@@ -83,8 +83,8 @@ void xtag_free (XTag * xtag);
XTag
*
xtag_new_parse
(
const
char
*
s
,
int
n
);
char
*
xtag_get_name
(
XTag
*
xtag
);
char
*
xtag_get_pcdata
(
XTag
*
xtag
);
char
*
xtag_get_attribute
(
XTag
*
xtag
,
c
har
*
attribute
);
XTag
*
xtag_first_child
(
XTag
*
xtag
,
char
*
name
);
char
*
xtag_get_attribute
(
XTag
*
xtag
,
c
onst
char
*
attribute
);
XTag
*
xtag_first_child
(
XTag
*
xtag
,
c
onst
c
har
*
name
);
XTag
*
xtag_next_child
(
XTag
*
xtag
,
char
*
name
);
int
xtag_snprint
(
char
*
buf
,
int
n
,
XTag
*
xtag
);
...
...
@@ -521,51 +521,55 @@ xtag_get_pcdata (XTag * xtag)
return
NULL
;
}
char
*
xtag_get_attribute
(
XTag
*
xtag
,
char
*
attribute
)
char
*
xtag_get_attribute
(
XTag
*
xtag
,
const
char
*
attribute
)
{
XList
*
l
;
XAttribute
*
attr
;
if
(
xtag
==
NULL
)
return
NULL
;
for
(
l
=
xtag
->
attributes
;
l
;
l
=
l
->
next
)
{
if
((
attr
=
(
XAttribute
*
)
l
->
data
)
!=
NULL
)
{
if
(
attr
->
name
&&
attribute
&&
!
strcmp
(
attr
->
name
,
attribute
))
return
attr
->
value
;
XList
*
l
;
XAttribute
*
attr
;
if
(
!
xtag
)
return
NULL
;
for
(
l
=
xtag
->
attributes
;
l
;
l
=
l
->
next
)
{
if
(
(
attr
=
(
XAttribute
*
)
l
->
data
)
!=
NULL
)
{
if
(
attr
->
name
&&
attribute
&&
!
strcmp
(
attr
->
name
,
attribute
)
)
return
attr
->
value
;
}
}
}
return
NULL
;
return
NULL
;
}
XTag
*
xtag_first_child
(
XTag
*
xtag
,
char
*
name
)
XTag
*
xtag_first_child
(
XTag
*
xtag
,
const
char
*
name
)
{
XList
*
l
;
XTag
*
child
;
XList
*
l
;
XTag
*
child
;
if
(
xtag
==
NULL
)
return
NULL
;
if
(
!
xtag
)
return
NULL
;
if
((
l
=
xtag
->
children
)
==
NULL
)
return
NULL
;
if
(
(
l
=
xtag
->
children
)
==
NULL
)
return
NULL
;
if
(
name
==
NULL
)
{
xtag
->
current_child
=
l
;
return
(
XTag
*
)
l
->
data
;
}
if
(
!
name
)
{
xtag
->
current_child
=
l
;
return
(
XTag
*
)
l
->
data
;
}
for
(;
l
;
l
=
l
->
next
)
{
child
=
(
XTag
*
)
l
->
data
;
for
(
;
l
;
l
=
l
->
next
)
{
child
=
(
XTag
*
)
l
->
data
;
if
(
child
->
name
&&
name
&&
!
strcmp
(
child
->
name
,
name
))
{
xtag
->
current_child
=
l
;
return
child
;
if
(
child
->
name
&&
name
&&
!
strcmp
(
child
->
name
,
name
)
)
{
xtag
->
current_child
=
l
;
return
child
;
}
}
}
xtag
->
current_child
=
NULL
;
return
NULL
;
xtag
->
current_child
=
NULL
;
return
NULL
;
}
XTag
*
...
...
modules/codec/cmml/xtag.h
View file @
8eb251e5
...
...
@@ -36,9 +36,9 @@ char * xtag_get_name (XTag * xtag);
char
*
xtag_get_pcdata
(
XTag
*
xtag
);
char
*
xtag_get_attribute
(
XTag
*
xtag
,
char
*
attribute
);
char
*
xtag_get_attribute
(
XTag
*
xtag
,
c
onst
c
har
*
attribute
);
XTag
*
xtag_first_child
(
XTag
*
xtag
,
char
*
name
);
XTag
*
xtag_first_child
(
XTag
*
xtag
,
c
onst
c
har
*
name
);
XTag
*
xtag_next_child
(
XTag
*
xtag
,
char
*
name
);
...
...
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