summaryrefslogtreecommitdiff
path: root/plugins/mpgmad
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-01 16:16:42 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-04-01 16:16:42 +0200
commit31a9125937554dcf1a02be252fe174ac7ac11590 (patch)
tree77ce4c2168163862e2d3e25c8dda75bd1bacba86 /plugins/mpgmad
parent9183e3d1c54fae7be902ced6dd06f41546ec2e8e (diff)
fixed possible segfault in junk_id3v2_read_full when reading replaygain info from TXXX frame
Diffstat (limited to 'plugins/mpgmad')
-rw-r--r--plugins/mpgmad/mpgmad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mpgmad/mpgmad.c b/plugins/mpgmad/mpgmad.c
index d88abe6f..8d99f1d3 100644
--- a/plugins/mpgmad/mpgmad.c
+++ b/plugins/mpgmad/mpgmad.c
@@ -1094,8 +1094,8 @@ cmp3_insert (DB_playItem_t *after, const char *fname) {
memset (&buffer, 0, sizeof (buffer));
buffer.file = fp;
int skip = deadbeef->junk_get_leading_size (buffer.file);
- trace ("mpgmad: skipping %d bytes (tag)\n", skip);
if (skip > 0) {
+ trace ("mpgmad: skipping %d bytes (tag)\n", skip);
deadbeef->fseek(buffer.file, skip, SEEK_SET);
}
// calc approx. mp3 duration