36 Commits

Author SHA1 Message Date
jcdr428 8b65c588ac Fix Casts 2023-08-16 08:29:29 +01:00
jcdr428 9e77c0e82f Fix Casts 2023-08-13 22:55:27 +01:00
jcdr428 9c0cebc1c0 Replace push_back with emplace_back 2023-08-09 21:46:16 +01:00
jcdr428 b83b932637 Various fixes 2023-08-09 18:36:38 +01:00
jcdr428 f7158ca5ba Various fixes 2023-08-09 16:54:24 +01:00
jcdr428 5ee4fc2804 clang format check 2023-08-09 15:31:24 +01:00
jcdr428 0c2601ed85 clang-tidy check: redundant string initialization 2023-08-09 15:14:22 +01:00
jcdr428 75ede3ae0a reSharper: remove unused assignments 2023-08-09 14:50:45 +01:00
jcdr428 0df491091e reSharper: remove redundant 'else' keyword 2023-08-09 14:18:15 +01:00
jcdr428 5386d1a763 reSharper: Remove redundant casts 2023-08-09 14:08:33 +01:00
jcdr428 cdc97505d0 clang-tidy check: use empty() instead of size() == 0 2023-08-09 13:59:21 +01:00
jcdr428 19aa92e4d5 clang tidy check: use s.data() instead of &s[0] 2023-08-09 13:53:35 +01:00
jcdr428 e221a3b171 Change C cast to C++ casts 2023-08-09 13:48:22 +01:00
jcdr428 7fad1da4ec clang tidy check: write escaped string literals as raw strings 2023-08-09 12:43:31 +01:00
jcdr428 ef977091ac clang format check 2023-08-09 12:15:14 +01:00
jcdr428 159484d085 reSharper: method fuctions can be made 'const' 2023-08-09 11:57:16 +01:00
jcdr428 0007d7902d reSharper: local variables can be made 'const' 2023-08-09 10:53:47 +01:00
jcdr428 6adb183f4c clang tidy check: use 'auto' to avoid duplicating type name 2023-08-09 08:57:08 +01:00
jcdr428 2800bac727 clang tidy check: replace NULL and 0 by nullptr 2023-08-09 08:41:46 +01:00
jcdr428 66c5899f38 reSharper inspection - join declarations and assignments 2023-08-09 08:30:38 +01:00
jcdr428 6b4d3fd57c [bug] Fix negative duration 2022-06-10 13:56:16 +01:00
jcdr428 a2fda7978d Fix types class cast 2022-01-08 18:21:04 +01:00
jcdr428 812033a5fd Tidy-up metaDemuxer class
Reduce memory footprint of detectTrackReader
Correct types, make casting explicit
Add "srtToFloat" method
2022-01-02 13:26:53 +01:00
jcdr428 83a6cae62a Upgrade to c++17
Add #define WIN32_LEAN_AND_MEAN to avoid conflict between new c++17 std::byte and windows.h byte type.
2021-09-22 21:33:14 +01:00
Daniel Kamil Kozar 61fe6ebbd7 Revert recent changes regarding directory separators (#308)
Some of these functions are called by the Bluray ISO image generation code which
always uses '/' as a directory separator.

Fixes #307.
2020-07-01 18:04:04 +02:00
Dan d2c38c542f Check for Invalid Characters in Output Filename (#274)
Fixes #268.
2020-06-26 23:33:50 +02:00
Dan Bryant 4aefb5cbdb clang-format 2020-03-04 15:26:30 +00:00
Dan Bryant 8db03e4821 ensure that when we extract the filename it won't stop on the first period encountered 2020-03-04 15:19:50 +00:00
Daniel Kamil Kozar 9670fd6b19 Remove all usages of std::wstring (#219)
This commit erases all usages of std::wstring from the face of the project and reduces wchar_t usages to the necessary minimum, mostly for interoperability with WinAPI functions. UTF-8 encoded std::strings are used in place of std::wstring objects, and code which must operate on actual characters instead of the bytes which might represent a character has been modified in order to work properly - mostly the subtitle renderer and reader classes.
2020-03-01 01:14:57 +01:00
Daniel Kamil Kozar 355151c7ea Try using the active code page if conversion from UTF-8 fails (#181)
This makes the program compatible with meta files saved in ACP by older GUI
versions.
2020-02-06 22:38:54 +01:00
Daniel Kamil Kozar 92246c3367 Make the main binary a Unicode application on Windows
This commit uses "wide" (i.e. UTF-16) commandline arguments when launching the
program on Windows, and uses the "wide" Windows APIs when dealing with strings.
This makes it independent from the currently selected active code page on the
system, and hopefully fixes issues with "nonstandard" characters appearing in
file and directory paths.

Fixes #172.
2020-02-05 00:15:44 +01:00
Daniel Kamil Kozar 451ec61a50 Introduce a uniform formatting style (#131)
The repository now contains a clang-format file which should be used when committing new code. Additionally, a new workflow job is added which checks the conformance of source files to the specified formatting rules.

Fixes #47.
2020-01-14 21:56:44 +01:00
Daniel Kamil Kozar 6bc34a6e54 Replace custom platform defines with standard ones 2019-12-08 16:31:56 +01:00
Daniel Kamil Kozar d7994f1193 Fix MSYS2 build 2019-10-27 02:22:26 +02:00
Daniel Kamil Kozar b098a6de41 Remove condvar, mutex and time from libmediation 2019-10-24 23:54:56 +02:00
Dan Bryant 1b6abe9a0d add libmediation, update make_pair functions to be usable with C++11, update Makefile for modern systems and bring readme up-to-date 2019-07-23 23:05:20 +01:00