diff options
author | 2013-02-22 19:57:58 +0100 | |
---|---|---|
committer | 2013-02-22 19:57:58 +0100 | |
commit | ce55c7ea5aaffcd074d89128982e766a8649874a (patch) | |
tree | 69a13df9a567696937dcfb5e4bb99f4251c06838 /plugins | |
parent | 580f8e84cf758fdaa49421ddc46e0017320945c7 (diff) |
wma: debug info
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wma/asfheader.c | 3 | ||||
-rw-r--r-- | plugins/wma/wma_plugin.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/wma/asfheader.c b/plugins/wma/asfheader.c index 95dd0299..6dff444b 100644 --- a/plugins/wma/asfheader.c +++ b/plugins/wma/asfheader.c @@ -417,6 +417,7 @@ static int asf_parse_header(DB_FILE *fd, asf_waveformatex_t* wfx, DB_playItem_t /* TODO: Check that we have datalen bytes left in the file */ datalen = header.datalen; + DEBUGF("datalen: %d\n", datalen); for (i=0; i<(int)subobjects; i++) { DEBUGF("Parsing header object %d - datalen=%d\n",i,(int)datalen); @@ -428,7 +429,7 @@ static int asf_parse_header(DB_FILE *fd, asf_waveformatex_t* wfx, DB_playItem_t asf_read_object_header(¤t, fd); if (current.size > datalen || current.size < 24) { - DEBUGF("invalid object size - current.size=%d, datalen=%d\n",(int)current.size,(int)datalen); + DEBUGF("invalid object size - current.size=%lld, datalen=%lld\n",current.size,datalen); break; } diff --git a/plugins/wma/wma_plugin.c b/plugins/wma/wma_plugin.c index 923b384a..76b469dd 100644 --- a/plugins/wma/wma_plugin.c +++ b/plugins/wma/wma_plugin.c @@ -86,7 +86,7 @@ wmaplug_init (DB_fileinfo_t *_info, DB_playItem_t *it) { trace ("opened %s\n", deadbeef->pl_find_meta (it, ":URI")); int res = get_asf_metadata (info->fp, NULL, &info->wfx, &info->first_frame_offset); - trace ("get_asf_metadata returned %d\n", res); + trace ("get_asf_metadata returned %d, first_frame_offset: %lld\n", res, info->first_frame_offset); deadbeef->fseek (info->fp, info->first_frame_offset, SEEK_SET); #if USE_FFMPEG info->wmadec.sample_rate = info->wfx.rate; |