Subject: | Segmentation fault when adding a frame |
Date: | Sun, 26 Apr 2015 19:43:22 +0100 |
To: | bug-Audio-TagLib [...] rt.cpan.org |
From: | Robert Rothenberg <rrwo [...] cpan.org> |
Appending or inserting a new frame onto a frameList causes a segmentation
fault when the program ends.
Show quoted text
> use Audio::TagLib::MPEG::File;
>
> my $file = Audio::TagLib::MPEG::File->new('test.mp3');
> my $tag = $file->ID3v2Tag;
> my $list = $tag->frameList;
>
> my $factory = Audio::TagLib::ID3v2::FrameFactory->instance();
>
> my $data = Audio::TagLib::ByteVector->new ('COMM' . # Frame ID
> "\x00\x00\x00\x13" . # Frame size
> "\x00\x00" . # Frame flags
> "\x00" # Encoding
> , 23);
>
> my $header = Audio::TagLib::ID3v2::Header->new($data);
> my $frame = $factory->createFrame($data, $header);
>
> my $str = Audio::TagLib::String->new('A comment');
> $frame->setText($str);
>
> $list->append($frame);
I am using Audio::TagLib 1.64, and taglib 1.9.1-2.1ubuntu1