summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-17 19:14:42 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-05-17 19:14:42 +0200
commit2ecb242a9bdbce45d2fdf7564914d906e4e9b90d (patch)
tree44746c4521622c860dbed5be0ba6188ea53a4957 /plugins
parent3a0a13456fb328e4cc80198186a4efb7fff17ba6 (diff)
fixed tag writer error checking in vorbis plugin (GArik)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/vorbis/vorbis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c
index 2b73415e..cba438c4 100644
--- a/plugins/vorbis/vorbis.c
+++ b/plugins/vorbis/vorbis.c
@@ -581,8 +581,8 @@ cvorbis_write_metadata (DB_playItem_t *it) {
snprintf (outname, sizeof (outname), "%s.temp.ogg", it->fname);
out = fopen (outname, "w+b");
- if (!fp) {
- trace ("cvorbis_write_metadata: failed to open %s for writing\n", it->fname);
+ if (!out) {
+ trace ("cvorbis_write_metadata: failed to open %s for writing\n", outname);
goto error;
}
@@ -594,7 +594,7 @@ cvorbis_write_metadata (DB_playItem_t *it) {
err = 0;
error:
if (out) {
- fclose (fp);
+ fclose (out);
}
if (state) {
vcedit_clear (state);