summaryrefslogtreecommitdiff
path: root/plugins/aac
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-08-25 14:33:55 +0200
committerGravatar waker <wakeroid@gmail.com>2012-08-25 14:33:55 +0200
commit631620d00a36ce5cbe1f58443711cc4af74b1198 (patch)
tree0792ce808a1e9099aea3e712fffeaff9c82d67da /plugins/aac
parentb1a86937e1de44242d556967a755d05de3c0a505 (diff)
aac: added more logging
Diffstat (limited to 'plugins/aac')
-rw-r--r--plugins/aac/aac.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c
index c361c86a..ae575c8f 100644
--- a/plugins/aac/aac.c
+++ b/plugins/aac/aac.c
@@ -1104,13 +1104,22 @@ aac_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) {
/// }
/// }
+/// show how many audio tracks is in the mp4
+/// int naudio = 0;
+/// for (int i = 0; i < ntracks; i++) {
+/// if (mp4ff_get_track_type (mp4, i) == TRACK_AUDIO) {
+/// naudio++;
+/// }
+/// }
+/// trace ("found %d audio tracks\n", naudio);
+
for (int i = 0; i < ntracks; i++) {
if (mp4ff_get_track_type (mp4, i) != TRACK_AUDIO) {
continue;
}
int res = mp4_track_get_info (mp4, i, &duration, &samplerate, &channels, &totalsamples);
if (res >= 0 && duration > 0) {
- trace ("aac: found audio track %d\n", i);
+ trace ("aac: found audio track %d (duration=%f, totalsamples=%d)\n", i, duration, totalsamples);
int num_chapters;
aac_chapter_t *chapters = NULL;