summaryrefslogtreecommitdiffstats
path: root/apps/plugins/vbrfix.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/vbrfix.c')
-rw-r--r--apps/plugins/vbrfix.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/vbrfix.c b/apps/plugins/vbrfix.c
index 88f0a6579e..79fa134499 100644
--- a/apps/plugins/vbrfix.c
+++ b/apps/plugins/vbrfix.c
@@ -150,7 +150,7 @@ static bool vbr_fix(const char *selected_file)
xingupdate(0);
rc = rb->mp3info(&entry, selected_file);
- if(rc < 0) {
+ if(rc) {
fileerror(rc);
return true;
}
@@ -258,6 +258,8 @@ static bool vbr_fix(const char *selected_file)
}
else
{
+ rb->close(fd);
+
/* Not a VBR file */
DEBUGF("Not a VBR file\n");
rb->splash(HZ*2, ID2P(LANG_NOT_A_VBR_FILE));