This queue is for tickets about the Audio-File CPAN distribution.

Report information
The Basics
Id:
43696
Status:
open
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
NHEINRIC [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Normal
Broken in:
0.11
Fixed in:
(no value)



Subject: test.flac fails tests (Audio::File::Tag does not support array values)
test.flac included in the distribution fails tests. When Audio::FLAC::Header encounters a file with multiple tags of the same type, it adds them to an arrayref and returns said arrayref when queried. Audio::File does not handle this case. Example: test.flac has 4 tags for 'TRACKTOTAL' When Audio::File::Flac::Tag tries to store the TRACKTOTAL value, it is storing an arrayref: `$self->total( $flactag->{TRACKTOTAL} );` Calling $file->tags->total is actually returning "$self->{total} + 0;", which returns the decimal representation of memory address of the arrayref instead of the total number of tracks. Suggestion would be to return last element in scalar context and the array in array context.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.