[vlc-devel] [vlc-commits] taglib: template the extension fix, remove contribs patch
Francois Cartegnie
fcvlcdev at free.fr
Fri Feb 19 16:43:18 CET 2016
Le 19/02/2016 16:37, Filip Roséen a écrit :
>
> #if TAGLIB_VERSION >= TAGLIB_SYNCDECODE_FIXED_VERSION
> - FileRef::addFileTypeResolver( new VLCTagLib::ExtResolver<MPEG::File>(".aac") );
> + static FileTypeResolver * ftr_acc = FileRef::addFileTypeResolver( new VLCTagLib::ExtResolver<MPEG::File>(".aac") );
> #endif
>
> - FileRef::addFileTypeResolver( new VLCTagLib::ExtResolver<MP4::File>(".m4v") );
> + static FileTypeResolver * ftr_m4v = FileRef::addFileTypeResolver( new VLCTagLib::ExtResolver<MP4::File>(".m4v") );
This has been fixed using static class instances, (because we need to
deallocate, and releasing module will)
and registration flag.
Francois
More information about the vlc-devel
mailing list