From 94efeb284582643cfdbca248c2f4e4647be09f63 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 12 Jul 2014 20:51:00 +0200 Subject: decoder/dsdiff: simplify dsdlib_skip() call --- src/decoder/DsdiffDecoderPlugin.cxx | 7 +++---- 1 file 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 */ -- cgit v1.2.3