Commit Graph

14244 Commits

Author SHA1 Message Date
Moritz Bunkus
c02607e45b
German translation: fix typo
Fixes #3152.
2021-06-25 19:55:20 +02:00
Moritz Bunkus
701c0541af
fix compilation with fmt v8
fmt v8 currently contains a bug that causes compilation to fail if
`FMT_USE_USER_DEFINED_LITERALS` is defined to 0. This is a regression
from earlier versions. A bug has been filed against fmt:

https://github.com/fmtlib/fmt/issues/2384

MKVToolNix defined this to 0 as earlier fmt versions caused warnings
in their code dealing with user-defined literals with
`-Wpedantic`. Luckily those warnings do not occur with v8 anymore.

The fix is to test in `configure` if the fmt version we're compiling
with is v8 or older, and only to define
`FMT_USE_USER_DEFINED_LITERALS` to 0 for earlier versions.

Fixes #3151.
2021-06-25 10:40:18 +02:00
Moritz Bunkus
033d0555c4
README: update version number requirement for fmt 2021-06-25 10:40:18 +02:00
Moritz Bunkus
360e40b157
fmt: update bundled version to v8.0.0
See #3151.
2021-06-25 10:40:18 +02:00
Moritz Bunkus
c486f6e2bf
tests: intentional update due to ae7c31e 2021-06-24 23:12:40 +02:00
Moritz Bunkus
ae7c31e80e
use Qt's QDateTime instead of functions of the C & C++ standard libraries
Somewhere in the code seemed to be a conversion from to 32-bit integer
types for storing or converting from/to seconds since epoch. This
means that dates before seconds-since-epoch 0 (1970-01-01 00:00:00
UTC) or after seconds-since-epoch std::max<int32_t>() (2038-01-19
03:14:08 UTC) could not be converted to displayable strings.

Qt's QDateTime is not affected by this issue, not even on
Windows. Therefore the header editor wasn't affected as it solely used
QDateTime for all conversions, not the C & C++ standard library
functions.

This only happened on Windows.

Affected were mkvmerge (values in JSON identification mode, timestamps
in track statistics tags), mkvinfo (outputting any EBML date element),
MKVToolNix GUI's info tool (again outputting any EBML data element).

Fixes #3148.
2021-06-24 22:52:09 +02:00
Moritz Bunkus
919a7624b3
GUI: header editor: fix type description of timestamp elements 2021-06-24 22:14:42 +02:00
Moritz Bunkus
a8fa8c0141
GUI: mux: fix default for "adding dragged & dropped files" dialog 2021-06-20 20:03:47 +02:00
Moritz Bunkus
c37e281c11
GUI: settings: register all enums with Qt's meta object system 2021-06-20 20:01:34 +02:00
Moritz Bunkus
ba6080ffce
GUI: mux: re-add icons to "default track flag" column
Also remove text in same column for non-regular tracks (e.g. chapters
or tags).

Fixes #3144.
2021-06-20 16:05:01 +02:00
Moritz Bunkus
79708cb71e
translations: update list of translatable strings; update German translation 2021-06-20 13:51:33 +02:00
Fúlvio Alves
88e6908dc9
translations: update Brazilian Portuguese 2021-06-20 13:49:56 +02:00
Moritz Bunkus
b08137a121
GUI: mux: handle disc library info when adding MPLS without scanning for playlists
Implements #3143.
2021-06-20 13:48:24 +02:00
Moritz Bunkus
8720360459
conversion between QString & std::filesystem::path via to_path()/to_qs() 2021-06-20 13:46:54 +02:00
Moritz Bunkus
b46089387c
GUI: source file: use = default for copy constructor 2021-06-20 12:58:20 +02:00
Moritz Bunkus
354e7cae2e
GUI: source file: move initialization to data members 2021-06-20 12:58:00 +02:00
Moritz Bunkus
2f8000b33a
GUI: mux: move disc library info selection to its own widget
This is preparation for implementing #3143.
2021-06-19 23:37:53 +02:00
Moritz Bunkus
e4ea57805b
GUI: mux: remember last open directory for files added via command line again 2021-06-19 17:17:06 +02:00
Moritz Bunkus
0004affd77
macOS: update various libraries 2021-06-19 14:42:20 +02:00
Moritz Bunkus
29e8c6e05d
WebVTT parser: accept hours > 99; be more flexible wrt. whitespace & hours digits
The specs say that hours must be at least two digits, meaning more
than 99 hours must be supported.

The specs also contain suggested ways for parsers to be a bit more
lenient with certain aspects of the timestamps:

1. Spaces & tabs at the start of the line are OK.
2. Arbitrary number of space & tabs around the arrow are OK.
3. The hours component can also be one digit only.

Fixes & implements #3139.
2021-06-19 11:03:54 +02:00
Moritz Bunkus
f5e0666079
NEWS: mention building with older gcc for Windows again due to crashes
See #3132 & #3133.
2021-06-18 17:15:00 +02:00
Moritz Bunkus
0b44e8f4d8
README: re-word when cmark is required
It's only used in MKVToolNix GUI. Its use has nothing to do with where
Qt is used.
2021-06-18 17:09:31 +02:00
Moritz Bunkus
292626a5dc
GUI: remove installation problem check for magic.mgc 2021-06-16 23:36:02 +02:00
Moritz Bunkus
44b39bd813
GUI: system info: fix compilation with older versions of dvdread 2021-06-16 20:31:49 +02:00
Moritz Bunkus
0075ce2d62
installer: fix usage of deprecated arguments for xargs 2021-06-16 20:05:12 +02:00
Moritz Bunkus
799a8baba4
installer: "share" directory is no longer needed after magic.mgc removal 2021-06-16 20:02:20 +02:00
Moritz Bunkus
34d5becc1b
GUI: include versions of all libraries in system information 2021-06-16 19:57:00 +02:00
Moritz Bunkus
4108cfe65a
remove remaining traces of support for bz2 & lzo 2021-06-16 19:57:00 +02:00
Moritz Bunkus
d29abe6518
GUI: update check: avoid potential invalid memory access
Newer mingw gcc versions (10.3.0, 11) report that there was a
potential write beyond the end of an internal buffer in a QByteArray
instance. It is entirely unclear to me how that could happen, but it
has to do with the conversion from `constexpr auto … = "C-string"` to
`std::string` instances.

As those URLs don't really need to be available at compile time,
converting them to be returned on demand at runtime seemed fine. The
warning is gone now, but again, I don't fully understand the why &
how.
2021-06-16 17:40:22 +02:00
Moritz Bunkus
e4ceff992a
NEWS: re-add missing empty line 2021-06-16 17:35:53 +02:00
Moritz Bunkus
2e92c72984
avoid narrowing conversion on mingw 2021-06-16 17:11:22 +02:00
Moritz Bunkus
3174f70f76
configure: remove --enable-appimage & auto-detect location of locale dir
Part of the fix of #3137.
2021-06-16 16:42:25 +02:00
Moritz Bunkus
178ff2b141
README/NEWS: make clear that Qt is required & how to disable the GUI
Part of the fix of #3137.
2021-06-16 16:42:19 +02:00
Moritz Bunkus
80cbad698d
remove usage of the magic library
Part of the fix of #3137.
2021-06-16 16:42:01 +02:00
Moritz Bunkus
601483048e
use Qt instead of libmagic for MIME type detection
libmagic has real issues detecting the MIME type of fonts (TrueType,
OpenType). This switch improves the situation dramatically.

Fixes #3137.
2021-06-16 15:49:41 +02:00
Moritz Bunkus
3caf7deabf
build system: link command line applications against Qt's core library
This is in preparation of fixing #3137. The plan is not to use
libfile's MIME type detection but Qt's. As both mkvmerge and the GUI
need to auto-detect the MIME type, this means that the command line
applications will have to be linked against Qt's core library (but not
the GUI libraries).
2021-06-15 22:39:40 +02:00
Moritz Bunkus
783229560f
configure: require Qt 5 or 6; add --disable-gui for disabling the GUI
This is in preparation of fixing #3137. The plan is not to use
libfile's MIME type detection but Qt's. As both mkvmerge and the GUI
need to auto-detect the MIME type, this means that the command line
applications will have to be linked against Qt's core library (but not
the GUI libraries).
2021-06-15 22:39:33 +02:00
Moritz Bunkus
7ebbf42812
bump version number, set release code name 2021-06-13 12:45:29 +02:00
Moritz Bunkus
2d5124cec3
NEWS: re-order for easier consumption 2021-06-13 12:42:35 +02:00
Burak Yavuz
c9414d6463
translations: update Turkish 2021-06-13 12:39:27 +02:00
Andrei Stepanov
df2130ca40
translations: update Russian 2021-06-13 12:39:21 +02:00
Roberto Boriotti
c34bb6d150
translations: update Italian 2021-06-13 12:39:13 +02:00
TMTisFree
55f1428d13
translations: update French 2021-06-13 12:39:05 +02:00
Israel Lucas Torrijos
ea7baf0859
translations: update Spanish 2021-06-13 12:38:59 +02:00
Antoni Bella Pérez
23ad21ae75
translations: update Catalan 2021-06-13 12:38:53 +02:00
Moritz Bunkus
850c318efa
translations: update list of translatable strings; update German translation 2021-06-08 21:45:41 +02:00
Moritz Bunkus
52857288ad
GUI: mux: enable "delay" and "sync" for tracks of type "chapters"
Implements #3129.
2021-06-08 21:44:43 +02:00
Timofey Lisunov
13ff6a411f
translations: update Russian 2021-06-08 21:19:08 +02:00
Симеон Цветков
3586e11ed6
man page translations: update Bulgarian 2021-06-08 21:19:04 +02:00
Симеон Цветков
c5b386bb06
translations: update Bulgarian 2021-06-06 13:06:19 +02:00