]> granicus.if.org Git - taglib/commit
Enable FileRef to detect file types by the actual content of a stream.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Fri, 3 Feb 2017 08:52:27 +0000 (17:52 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 4 Feb 2017 14:31:08 +0000 (23:31 +0900)
commit931bb042c396f3452b0a8a82b88b93e0fe16dbc9
tree7968c9663753318cff711f3a53f159e611aadffb
parenta5d9e49c4958ef4e91785b74afab52964a521499
Enable FileRef to detect file types by the actual content of a stream.

FileRef doesn't work with ByteVectorStream as reported at #796, since ByteVectorStream is not associated with a file name and FileRef detects file types based on file extensions.
This commit makes FileRef to work with ByteVectorStream by enabling it to detect file types based on the actual content of a stream.
35 files changed:
taglib/ape/apefile.cpp
taglib/ape/apefile.h
taglib/asf/asffile.cpp
taglib/asf/asffile.h
taglib/fileref.cpp
taglib/fileref.h
taglib/flac/flacfile.cpp
taglib/flac/flacfile.h
taglib/mp4/mp4file.cpp
taglib/mp4/mp4file.h
taglib/mpc/mpcfile.cpp
taglib/mpc/mpcfile.h
taglib/mpeg/mpegfile.cpp
taglib/mpeg/mpegfile.h
taglib/mpeg/mpegheader.cpp
taglib/mpeg/mpegutils.h
taglib/ogg/flac/oggflacfile.cpp
taglib/ogg/flac/oggflacfile.h
taglib/ogg/opus/opusfile.cpp
taglib/ogg/opus/opusfile.h
taglib/ogg/speex/speexfile.cpp
taglib/ogg/speex/speexfile.h
taglib/ogg/vorbis/vorbisfile.cpp
taglib/ogg/vorbis/vorbisfile.h
taglib/riff/aiff/aifffile.cpp
taglib/riff/aiff/aifffile.h
taglib/riff/wav/wavfile.cpp
taglib/riff/wav/wavfile.h
taglib/tagutils.cpp
taglib/tagutils.h
taglib/trueaudio/trueaudiofile.cpp
taglib/trueaudio/trueaudiofile.h
taglib/wavpack/wavpackfile.cpp
taglib/wavpack/wavpackfile.h
tests/test_fileref.cpp