[vlc-devel] [vlc-commits] taglib: template the extension fix, remove contribs patch
ssbssa at yahoo.de
Fri Feb 19 14:45:34 CET 2016
> @@ -719,9 +738,11 @@ static int ReadMeta( vlc_object_t* p_this)
> return VLC_EGENERIC;
> #if TAGLIB_VERSION >= TAGLIB_SYNCDECODE_FIXED_VERSION
> - FileRef::addFileTypeResolver( new VLCTagLib::FileAAC );
> + FileRef::addFileTypeResolver( new VLCTagLib::ExtResolver<MPEG::File>(".aac") );
> + FileRef::addFileTypeResolver( new VLCTagLib::ExtResolver<MP4::File>(".m4v") );
> #if defined(_WIN32)
> wchar_t *wpath = ToWide( psz_path );
> if( wpath == NULL )
Now on every call to ReadMeta() these VLCTagLib::ExtResolver instances are added to a static list, and they are never deleted.
Is there a way so this is only done once (and maybe delete them at the end)?
More information about the vlc-devel