diff options
author | waker <wakeroid@gmail.com> | 2012-03-11 11:20:55 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-03-11 11:20:55 +0100 |
commit | ca77336c07f718d8d452d814697e273a745e6ca1 (patch) | |
tree | 6b8595420d1af30638afc325b1a2f7d7a98f42b8 /plugins | |
parent | 60edfe187da7d6b1caa9fd43f6ba6329143a1961 (diff) |
vorbis trace compile fixes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/vorbis/vorbis.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/vorbis/vorbis.c b/plugins/vorbis/vorbis.c index 6911f667..02c85569 100644 --- a/plugins/vorbis/vorbis.c +++ b/plugins/vorbis/vorbis.c @@ -199,7 +199,7 @@ cvorbis_init (DB_fileinfo_t *_info, DB_playItem_t *it) { info->info.file = deadbeef->fopen (deadbeef->pl_find_meta (it, ":URI")); if (!info->info.file) { - trace ("ogg: failed to open file %s\n", it->fname); + trace ("ogg: failed to open file %s\n", deadbeef->pl_find_meta (it, ":URI")); return -1; } int ln = deadbeef->fgetlength (info->info.file); @@ -576,11 +576,11 @@ cvorbis_read_metadata (DB_playItem_t *it) { fp = deadbeef->fopen (deadbeef->pl_find_meta (it, ":URI")); if (!fp) { - trace ("cvorbis_read_metadata: failed to fopen %s\n", it->fname); + trace ("cvorbis_read_metadata: failed to fopen %s\n", deadbeef->pl_find_meta (it, ":URI")); return -1; } if (fp->vfs->is_streaming ()) { - trace ("cvorbis_read_metadata: failed to fopen %s\n", it->fname); + trace ("cvorbis_read_metadata: failed to fopen %s\n", deadbeef->pl_find_meta (it, ":URI")); goto error; } ov_callbacks ovcb = { @@ -597,7 +597,7 @@ cvorbis_read_metadata (DB_playItem_t *it) { int tracknum = deadbeef->pl_find_meta_int (it, ":TRACKNUM", -1); vi = ov_info (&vorbis_file, tracknum); if (!vi) { // not a vorbis stream - trace ("cvorbis_read_metadata: failed to ov_open %s\n", it->fname); + trace ("cvorbis_read_metadata: failed to ov_open %s\n", deadbeef->pl_find_meta (it, ":URI")); goto error; } @@ -640,7 +640,7 @@ cvorbis_write_metadata (DB_playItem_t *it) { } fp = fopen (deadbeef->pl_find_meta (it, ":URI"), "rb"); if (!fp) { - trace ("cvorbis_write_metadata: failed to read metadata from %s\n", it->fname); + trace ("cvorbis_write_metadata: failed to read metadata from %s\n", deadbeef->pl_find_meta (it, ":URI")); goto error; } if (vcedit_open (state, fp) != 0) { @@ -732,7 +732,7 @@ cvorbis_write_metadata (DB_playItem_t *it) { } if (vcedit_write (state, out) < 0) { - trace ("cvorbis_write_metadata: failed to write tags to %s, error: %s\n", it->fname, vcedit_error (state)); + trace ("cvorbis_write_metadata: failed to write tags to %s, error: %s\n", deadbeef->pl_find_meta (it, ":URI"), vcedit_error (state)); goto error; } |