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
db82d2fc
Commit
db82d2fc
authored
Mar 05, 2004
by
Warren Dukes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lets SKIP all recorable stream errors
git-svn-id:
https://svn.musicpd.org/mpd/trunk@200
09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent
4e4faf61
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
mp3_decode.c
src/mp3_decode.c
+6
-8
No files found.
src/mp3_decode.c
View file @
db82d2fc
...
...
@@ -188,8 +188,8 @@ int decodeNextFrameHeader(mp3DecodeData * data) {
}
}
if
(
mad_header_decode
(
&
data
->
frame
.
header
,
&
data
->
stream
))
{
if
((
data
->
stream
).
error
==
MAD_ERROR_LOSTSYNC
)
{
#ifdef HAVE_ID3TAG
if
((
data
->
stream
).
error
==
MAD_ERROR_LOSTSYNC
)
{
signed
long
tagsize
=
id3_tag_query
(
(
data
->
stream
).
this_frame
,
(
data
->
stream
).
bufend
-
...
...
@@ -198,10 +198,9 @@ int decodeNextFrameHeader(mp3DecodeData * data) {
mad_stream_skip
(
&
(
data
->
stream
),
tagsize
);
return
DECODE_CONT
;
}
#endif
return
DECODE_SKIP
;
}
if
(
MAD_RECOVERABLE
((
data
->
stream
).
error
))
return
DECODE_CONT
;
#endif
if
(
MAD_RECOVERABLE
((
data
->
stream
).
error
))
return
DECODE_SKIP
;
else
{
if
((
data
->
stream
).
error
==
MAD_ERROR_BUFLEN
)
return
DECODE_CONT
;
else
...
...
@@ -224,9 +223,9 @@ int decodeNextFrame(mp3DecodeData * data) {
return
DECODE_BREAK
;
}
}
#ifdef HAVE_ID3TAG
if
(
mad_frame_decode
(
&
data
->
frame
,
&
data
->
stream
))
{
if
((
data
->
stream
).
error
==
MAD_ERROR_LOSTSYNC
)
{
#ifdef HAVE_ID3TAG
signed
long
tagsize
=
id3_tag_query
(
(
data
->
stream
).
this_frame
,
(
data
->
stream
).
bufend
-
...
...
@@ -235,10 +234,9 @@ int decodeNextFrame(mp3DecodeData * data) {
mad_stream_skip
(
&
(
data
->
stream
),
tagsize
);
return
DECODE_CONT
;
}
#endif
return
DECODE_SKIP
;
}
if
(
MAD_RECOVERABLE
((
data
->
stream
).
error
))
return
DECODE_CONT
;
#endif
if
(
MAD_RECOVERABLE
((
data
->
stream
).
error
))
return
DECODE_SKIP
;
else
{
if
((
data
->
stream
).
error
==
MAD_ERROR_BUFLEN
)
return
DECODE_CONT
;
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