0ffd2e8ab9
Replace DATA macro with more straightforward notations.
2015-11-19 09:23:19 +09:00
7e85d9b202
Simplify overly complicated ByteVector::mid() implementation.
...
Especially remove the useless nested RefCounters.
2015-11-19 09:23:19 +09:00
c6443dabc6
Use the same type name between a List and its iterator.
2015-11-18 17:58:13 +09:00
c5db39fbf4
Merge pull request #661 from ufleisch/podcast-frames
...
Support for Apple podcast frames
2015-11-18 17:48:14 +09:00
b6469bda1a
Merge pull request #628 from RyanLucchese/rl-ConstReverseIterator-solaris-bug
...
return const correct reverse iterator for newer Sun compiler
2015-11-18 17:23:16 +09:00
978a5f0a27
Merge pull request #629 from RyanLucchese/rl-fix-class-instantiation-solstudio
...
check SUNPRO_CC version before using Map workaround
2015-11-18 17:22:25 +09:00
8203ccf04c
Merge pull request #608 from TsudaKageyu/mp4-has-tags
...
Add a method to check if an MP4 file on disk actually has a tag.
2015-11-18 17:14:26 +09:00
47860c20f4
Make use of List iterators.
2015-11-18 17:06:49 +09:00
6e6e11f21a
Use List::isEmpty() rather than size() to check if the list is empty.
...
std::list::empty() is guaranteed to be an O(1) operation.
2015-11-18 16:57:41 +09:00
288e97ad44
Make use of List iterators.
2015-11-18 16:38:30 +09:00
07b26ab3e4
Make use of List iterators and setAutoDelete().
2015-11-18 15:29:04 +09:00
0f00dfc778
Add a comment to List::isEmpty().
2015-11-18 15:14:50 +09:00
b01fecd280
Separate some tests for MP4::File::hasMP4Tag().
2015-11-18 14:25:22 +09:00
69921b8090
Amend the comment on MP4::File::hasMP4Tag().
2015-11-18 14:17:29 +09:00
1caaa8a020
Reduce duplicate code between String::ctor() and operator=().
...
It's safer to have only one pair of ref()/deref() than to have a several pairs.
2015-11-18 14:03:45 +09:00
4f3844114a
Mark some variables and functions deprecated.
...
ByteVector::null, ByteVector::isNull(), String::null, String::isNull() have got marked deprecated.
It's dangerous to use them, and they will be removed in taglib2.
2015-11-18 10:29:25 +09:00
76de4234a1
Add a test for the CRC checksum of Ogg pages.
2015-11-17 15:05:43 +09:00
4bac99e3da
Add some notes about ByteVector::isNull() and ByteVector::null.
2015-11-17 13:06:03 +09:00
6b7a2c4cf7
Add some notes about String::isNull() and String::null.
2015-11-17 11:41:13 +09:00
1a942627bf
Add String::clear() method to clear the string.
2015-11-17 11:29:52 +09:00
3128f425b8
vsnprintf()/vsprintf() does not necessarily return -1 when failed.
2015-11-17 11:06:19 +09:00
3f968933f4
Use std::wstring::empty() rather than size() == 0.
...
Depending on the implementation, empty() can be more efficient than size().
2015-11-17 10:49:30 +09:00
67f44071cd
Fix the usage of boost::endian::endian_reverse().
2015-11-14 14:49:59 +09:00
11fbf394a3
Skip duplicate ID3v2 tags and treat them as an extra blank of the first one.
...
This enables all the file formats to handle duplicate ID3v2 tags properly and erase them automatically.
2015-11-13 11:55:56 +09:00
a25e1e9f90
Correct the ID3v2 padding size calculation.
2015-11-13 11:44:12 +09:00
091ab9dee0
Reduce memory reallocation when rendering an ID3v2 tag.
...
Prevent an ID3v2 padding from being ridiculously large.
2015-11-13 11:35:37 +09:00
c353a71ce5
Remove an unused private data member.
2015-11-13 11:23:27 +09:00
762581fe3f
Add a method to check if an MP4 file on disk actually has a tag.
2015-11-13 11:14:12 +09:00
8f147034d6
Add a test about handing "COMMENT" and "DESCIPRION" fields in XiphComment.
2015-11-13 11:07:50 +09:00
6775cef651
Make use of the Boost Endian library for byte swapping.
...
It's likely to be better at choosing the most efficient method than our CMake tests.
2015-11-13 10:58:23 +09:00
86c7e905ba
Silence some MSVC security warnings by replacing strdup() with _strdup().
...
Backported from taglib2.
2015-11-13 10:06:01 +09:00
2184aa476f
xiph: preserve any picture data we can't decode in the text comments
2015-11-12 08:50:34 -06:00
3e8eff16b8
another style fix
2015-11-12 08:50:34 -06:00
41a44f4ab2
Support reading deprecated COVERART xiphcomment
2015-11-12 08:50:34 -06:00
70e471f1d1
Check if saved picture can be read back correctly
2015-11-12 08:50:34 -06:00
f836cb4dea
Two more spaces
2015-11-12 08:50:34 -06:00
47bd01ecda
Minor style fixes
2015-11-12 08:50:34 -06:00
90ad17b4c5
Additional unit tests for base64 encoder/decoder
2015-11-12 08:50:34 -06:00
f4c1beb161
Make fromBase64 more strict and update code to follow taglib coding style
2015-11-12 08:50:34 -06:00
c963d3ba04
correctly filter out invalid base64 characters
2015-11-12 08:50:34 -06:00
c4a02a1799
remove redundant size specificier in mid usage
2015-11-12 08:50:34 -06:00
59a1b7a491
add forgotten const cast
2015-11-12 08:50:34 -06:00
62bb3c95c8
Make ByteVector::fromBase64 as static member function
2015-11-12 08:50:34 -06:00
d3351a0012
Delete pictures in XiphComment destructor
2015-11-12 08:50:34 -06:00
0c14bd0ed0
Add FLAC::Picture support to Xiph Comment
2015-11-12 08:50:34 -06:00
7bbf5a2e79
add base64 encoder/decoder to bytevector
2015-11-12 08:48:00 -06:00
ba5137bf2d
Use always "COMMENT" field when updating XiphComment.
...
The recommended field name for additional comments is "COMMENT".
It's the same behavior as "DATE" or "TRACKNUMBER" field.
2015-11-12 17:37:22 +09:00
b3cea6cca7
Fix XiphComment::setComment() for the case that a Vorbis comment has the "COMMENT" field.
2015-11-12 17:16:47 +09:00
a533b9c665
Hide private things from a public header.
...
Some functions and a variable in tstring.h are not needed to be exposed in a public header.
2015-11-12 15:36:02 +09:00
ec8e611909
Fix an instance reference to a static data member.
2015-11-12 14:48:24 +09:00