Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
ab069b7e
Commit
ab069b7e
authored
Jun 04, 2006
by
Eric Wong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 2.95 compatibility fixes
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4244
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
02975fca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
_flac_common.c
src/inputPlugins/_flac_common.c
+5
-2
oggvorbis_plugin.c
src/inputPlugins/oggvorbis_plugin.c
+3
-2
No files found.
src/inputPlugins/_flac_common.c
View file @
ab069b7e
...
@@ -114,13 +114,16 @@ static unsigned int commentMatchesAddToTag(
...
@@ -114,13 +114,16 @@ static unsigned int commentMatchesAddToTag(
MpdTag
**
tag
)
MpdTag
**
tag
)
{
{
const
char
*
str
;
const
char
*
str
;
size_t
slen
;
int
vlen
;
switch
(
itemType
)
{
switch
(
itemType
)
{
case
TAG_ITEM_TRACK
:
str
=
VORBIS_COMMENT_TRACK_KEY
;
break
;
case
TAG_ITEM_TRACK
:
str
=
VORBIS_COMMENT_TRACK_KEY
;
break
;
case
TAG_ITEM_DISC
:
str
=
VORBIS_COMMENT_DISC_KEY
;
break
;
case
TAG_ITEM_DISC
:
str
=
VORBIS_COMMENT_DISC_KEY
;
break
;
default:
str
=
mpdTagItemKeys
[
itemType
];
default:
str
=
mpdTagItemKeys
[
itemType
];
}
}
s
ize_t
s
len
=
strlen
(
str
);
slen
=
strlen
(
str
);
int
vlen
=
entry
->
length
-
slen
-
1
;
vlen
=
entry
->
length
-
slen
-
1
;
if
((
vlen
>
0
)
&&
(
0
==
strncasecmp
(
str
,(
char
*
)
entry
->
entry
,
slen
))
if
((
vlen
>
0
)
&&
(
0
==
strncasecmp
(
str
,(
char
*
)
entry
->
entry
,
slen
))
&&
(
*
(
entry
->
entry
+
slen
)
==
'='
))
{
&&
(
*
(
entry
->
entry
+
slen
)
==
'='
))
{
...
...
src/inputPlugins/oggvorbis_plugin.c
View file @
ab069b7e
...
@@ -161,13 +161,14 @@ static inline unsigned int ogg_parseCommentAddToTag(char * comment,
...
@@ -161,13 +161,14 @@ static inline unsigned int ogg_parseCommentAddToTag(char * comment,
unsigned
int
itemType
,
MpdTag
**
tag
)
unsigned
int
itemType
,
MpdTag
**
tag
)
{
{
const
char
*
needle
;
const
char
*
needle
;
unsigned
int
len
;
switch
(
itemType
)
{
switch
(
itemType
)
{
case
TAG_ITEM_TRACK
:
needle
=
VORBIS_COMMENT_TRACK_KEY
;
break
;
case
TAG_ITEM_TRACK
:
needle
=
VORBIS_COMMENT_TRACK_KEY
;
break
;
case
TAG_ITEM_DISC
:
needle
=
VORBIS_COMMENT_DISC_KEY
;
break
;
case
TAG_ITEM_DISC
:
needle
=
VORBIS_COMMENT_DISC_KEY
;
break
;
default:
needle
=
mpdTagItemKeys
[
itemType
];
default:
needle
=
mpdTagItemKeys
[
itemType
];
}
}
unsigned
int
len
=
strlen
(
needle
);
len
=
strlen
(
needle
);
if
(
strncasecmp
(
comment
,
needle
,
len
)
==
0
&&
*
(
comment
+
len
)
==
'='
)
{
if
(
strncasecmp
(
comment
,
needle
,
len
)
==
0
&&
*
(
comment
+
len
)
==
'='
)
{
if
(
!*
tag
)
if
(
!*
tag
)
*
tag
=
newMpdTag
();
*
tag
=
newMpdTag
();
...
...
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