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
15c2aa76
Commit
15c2aa76
authored
Aug 03, 2006
by
J. Alexander Treuman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Undoing more indent silliness
git-svn-id:
https://svn.musicpd.org/mpd/trunk@4536
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
7ad533cc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
tag.c
src/tag.c
+4
-8
No files found.
src/tag.c
View file @
15c2aa76
...
@@ -224,8 +224,7 @@ static int getId3v2FooterSize(FILE * stream, long offset, int whence)
...
@@ -224,8 +224,7 @@ static int getId3v2FooterSize(FILE * stream, long offset, int whence)
int
bufsize
;
int
bufsize
;
bufsize
=
fillBuffer
(
buf
,
ID3_TAG_QUERYSIZE
,
stream
,
offset
,
whence
);
bufsize
=
fillBuffer
(
buf
,
ID3_TAG_QUERYSIZE
,
stream
,
offset
,
whence
);
if
(
bufsize
<=
0
)
if
(
bufsize
<=
0
)
return
0
;
return
0
;
return
id3_tag_query
(
buf
,
bufsize
);
return
id3_tag_query
(
buf
,
bufsize
);
}
}
#endif
#endif
...
@@ -242,13 +241,11 @@ static struct id3_tag *getId3Tag(FILE * stream, long offset, int whence)
...
@@ -242,13 +241,11 @@ static struct id3_tag *getId3Tag(FILE * stream, long offset, int whence)
/* It's ok if we get less than we asked for */
/* It's ok if we get less than we asked for */
bufsize
=
fillBuffer
(
buf
,
ID3_TAG_BUFLEN
,
stream
,
offset
,
whence
);
bufsize
=
fillBuffer
(
buf
,
ID3_TAG_BUFLEN
,
stream
,
offset
,
whence
);
if
(
bufsize
<=
0
)
if
(
bufsize
<=
0
)
return
NULL
;
return
NULL
;
/* Look for a tag header */
/* Look for a tag header */
tagsize
=
id3_tag_query
((
const
id3_byte_t
*
)
buf
,
bufsize
);
tagsize
=
id3_tag_query
((
const
id3_byte_t
*
)
buf
,
bufsize
);
if
(
tagsize
<=
0
)
if
(
tagsize
<=
0
)
return
NULL
;
return
NULL
;
if
(
tagsize
<=
bufsize
)
{
if
(
tagsize
<=
bufsize
)
{
/* Got an id3 tag, and it fits in buf */
/* Got an id3 tag, and it fits in buf */
...
@@ -256,8 +253,7 @@ static struct id3_tag *getId3Tag(FILE * stream, long offset, int whence)
...
@@ -256,8 +253,7 @@ static struct id3_tag *getId3Tag(FILE * stream, long offset, int whence)
}
else
{
}
else
{
/* Got an id3tag that overflows buf, so get a new one */
/* Got an id3tag that overflows buf, so get a new one */
mbuf
=
malloc
(
tagsize
);
mbuf
=
malloc
(
tagsize
);
if
(
!
mbuf
)
if
(
!
mbuf
)
return
NULL
;
return
NULL
;
mbufsize
=
fillBuffer
(
mbuf
,
tagsize
,
stream
,
offset
,
whence
);
mbufsize
=
fillBuffer
(
mbuf
,
tagsize
,
stream
,
offset
,
whence
);
if
(
mbufsize
<
tagsize
)
{
if
(
mbufsize
<
tagsize
)
{
...
...
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