From ca77336c07f718d8d452d814697e273a745e6ca1 Mon Sep 17 00:00:00 2001 From: waker Date: Sun, 11 Mar 2012 11:20:55 +0100 Subject: vorbis trace compile fixes --- plugins/vorbis/vorbis.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/vorbis') 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; } -- cgit v1.2.3