Commit Graph

20 Commits

Author SHA1 Message Date
6b469f1c26 Add Locale class to deal with differently specified languages/countries
Different media/tag formats specify languages and countries
differently. This change introduces a Locale class to keep track
of the format being used. So far there are no automatic conversions
implemented so it is entirely up to the user to pass valid values using
a format which matches the one required by the media/tag format.

This change also adds support for Matroska's IETF elements so at least the
raw value can be read, written and is preserved.
2020-12-16 17:48:08 +01:00
f371efe642 Don't support IETF language elements explicitely
For now let's just ignore these elements explicitely until they are
actually supported. This way the warnings are at least more specific and
there will be no inconsistency when updating the track language.
2020-11-26 23:18:14 +01:00
5ad00a083c Adapt to changes in c++utilities 2019-06-10 23:11:39 +02:00
7efa7a0d5a Adapt to c++utilities v5 2019-05-04 16:04:21 +02:00
3265e0bea4 Fix documentation which was still using the old namespace 2018-06-03 20:38:32 +02:00
0a640c9f7f Fix warnings, mostly about implicit int conversions
This should fix all non-erros, leaving only warnings which
are indeed potential problems.

The following warnings should be safe to ignore:

* Conversions of various offsets from uint64 to
  std::streamoff/int64 are safe because such offsets have
  been obtained via tellg() and other functions
  returning std::streamoff in the first place.
* It also works vice-versa since tellg() should not
  return negative offsets with exceptions enabled.
* Conversions from char to unsigned char are also ok.
* Unused diag arguments can be ignored (those might be
  useful later).
* Annotate all intended fallthoughs.
2018-06-02 23:04:53 +02:00
59024a66a0 Don't clear field before parsing by default 2018-03-11 22:27:12 +01:00
c0336ed4bb Apply clang-format 2018-03-07 01:17:50 +01:00
0e15c74103 Move everything into namespace TagParser 2018-03-06 23:09:15 +01:00
36511fcc13 Add progress feedback and diagnostics replacing status provider 2018-03-06 22:44:01 +01:00
7ffb83c4b2 Fix assigning child in MatroskaTagField::reparse 2017-09-21 23:30:35 +02:00
a1547f9365 Fix some style issues 2017-09-14 18:19:30 +02:00
a71ffd3fc5 Improve some notification when parsing Matroska files 2017-09-14 18:18:59 +02:00
b97192abd3 Use std::make_unique provided by C++14 2017-02-05 21:02:40 +01:00
b2ceb822fb Make implicit type conversion explicit 2016-11-26 12:33:38 +01:00
1182cbeb85 Improve handling of binary Matroska tag fields 2016-07-22 01:37:25 +02:00
0c82c4c1fd allow precalculation of MP4 tag size 2015-12-10 13:50:46 +01:00
aa50c2d8b3 fixed includes 2015-09-06 19:57:33 +02:00
b1eb6faba6 fixed includes 2015-09-06 15:42:18 +02:00
033e313c74 First commit 2015-04-22 19:22:01 +02:00