aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-12 20:51:00 +0200
committerMax Kellermann <max@duempel.org>2014-07-12 20:51:00 +0200
commit94efeb284582643cfdbca248c2f4e4647be09f63 (patch)
tree42d01fedcc48cb7c8adc28bed9576d878aff2c9e /src/decoder
parenta73834436fb3947aa69d571026171c16d2434cec (diff)
downloadmpd-94efeb284582643cfdbca248c2f4e4647be09f63.tar.gz
mpd-94efeb284582643cfdbca248c2f4e4647be09f63.tar.xz
mpd-94efeb284582643cfdbca248c2f4e4647be09f63.zip
decoder/dsdiff: simplify dsdlib_skip() call
Diffstat (limited to '')
-rw-r--r--src/decoder/DsdiffDecoderPlugin.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/decoder/DsdiffDecoderPlugin.cxx b/src/decoder/DsdiffDecoderPlugin.cxx
index 5d9a679da..60b2e7624 100644
--- a/src/decoder/DsdiffDecoderPlugin.cxx
+++ b/src/decoder/DsdiffDecoderPlugin.cxx
@@ -286,10 +286,9 @@ dsdiff_read_metadata_extra(Decoder *decoder, InputStream &is,
metadata->id3_size = chunk_size;
}
#endif
- if (chunk_size != 0) {
- if (!dsdlib_skip(decoder, is, chunk_size))
- break;
- }
+
+ if (!dsdlib_skip(decoder, is, chunk_size))
+ break;
} while (dsdiff_read_chunk_header(decoder, is, chunk_header));
/* done processing chunk headers, process tags if any */