C bindings, fileref, fix warnings

This commit is contained in:
Urs Fleisch
2025-08-10 06:10:46 +02:00
parent 4546c00417
commit 6fa3db1e51
23 changed files with 227 additions and 54 deletions

View File

@@ -296,6 +296,10 @@ namespace
else if(Shorten::File::isSupported(stream))
file = new Shorten::File(stream, readAudioProperties, audioPropertiesStyle);
#endif
#ifdef TAGLIB_WITH_MATROSKA
else if(Matroska::File::isSupported(stream))
file = new Matroska::File(stream, readAudioProperties, audioPropertiesStyle);
#endif
// isSupported() only does a quick check, so double check the file here.
@@ -520,6 +524,11 @@ StringList FileRef::defaultFileExtensions()
#ifdef TAGLIB_WITH_SHORTEN
l.append("shn");
#endif
#ifdef TAGLIB_WITH_MATROSKA
l.append("mkv");
l.append("mka");
l.append("webm");
#endif
return l;
}