summaryrefslogtreecommitdiff
path: root/src/lib/file_group.cc
AgeCommit message (Collapse)Author
2025-07-10Remove compose.hpp includes.Carl Hetherington
sed -i "/include.*compose.hpp/d;" src/lib/*.cc src/wx/*.cc src/wx/*.h src/tools/*.cc src/lib/*.h test/*.cc
2025-07-10Replace String::compose with fmt.Carl Hetherington
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
2024-09-11Fix stupid bug introduced in 5db3eda9c6f0Carl Hetherington
2024-09-03Fix a few places where we should use dcp::File::open_error()Carl Hetherington
to get a more accurate error number on Windows.
2024-09-03Fix confusion about operator bool() with optional.Carl Hetherington
I think previously no exception would be thrown even if the file weren't open.
2023-10-09Use dcp::filesystem to wrap filesystem calls and fix_long_pathCarl Hetherington
anything that is passed to read_file() from libcxml. This should fix #2623 and other similar problems.
2022-11-26Return AVERROR_EOF from the avio_read method when appropriate.Carl Hetherington
2022-05-05Use dcp::File in DCP-o-matic (#2231).Carl Hetherington
2021-05-01C++11 tidying.Carl Hetherington
2020-11-28Fix over-read behaviour of FileGroup to be the same on all platforms.Carl Hetherington
Instead of relying on the operating system's behaviour when seeking off the end of a file, keep our own _position. This normalises the behaviour between POSIX and Windows.
2020-11-24Fix the behaviour of FileGroup when seeking too far.Carl Hetherington
Previously, if you did a seek off the end of the file group, the seek would return an error. This is not what fseek() does; it returns no error, and preserves the file pointer (returned by ftell()) as if the seek had been successful. fread()s after a too-far seek return no data, of course. Parsing some files (the example used to find the bug was a H264 MP4) involves a seek which is to the byte after the end of the mp4 file. If this fails the whole header parsing fails and DCP-o-matic refuses to use the file.
2020-10-13Fix errors when over-reading a "large" amount from FileGroups onCarl Hetherington
Windows. I haven't been able to find any conclusive explanation for why this stuff happens; https://stackoverflow.com/questions/7241168/safe-maximum-number-of-records-read-by-fread is one possible lead.
2019-09-29Improve OpenFileError so that it doesn't say "opening for read"v2.15.20Carl Hetherington
in one case where it should say "opening for read/write". Also add some unit tests for ReelWriter.
2018-12-19Let's not accept EAGAIN until we're sure it's possible.Carl Hetherington
2018-12-19Hopefully fix error handling (including EAGAIN) in FileGroup.Carl Hetherington
2016-08-21Even better open-file error reports.Carl Hetherington
2016-08-18Better errors on open fails; remove unused exception.Carl Hetherington
2016-05-25No-op; fix GPL address and use the explicit-program-name version.Carl Hetherington
2015-09-14Lots of #include <iostream>s for Arch.Carl Hetherington
2015-06-21No-op: remove all trailing whitespace.Carl Hetherington
2014-07-01Merge master.Carl Hetherington
2014-07-01while (1) -> while (true)Carl Hetherington
2014-05-02Comments.Carl Hetherington
2014-01-06Use _ftelli64 rather than ftell on windows.Carl Hetherington
2014-01-05Use _fseeki64 on Windows when handling content files.Carl Hetherington
2013-12-29Fix a number of missing fopen_boost replacements; might fix problems with ↵Carl Hetherington
adding content from non-Latin directories.
2013-11-23Use FileGroup in FFmpeg.Carl Hetherington
2013-11-23Small FileGroup tidy-up; actually build FileGroup test; rearrange test wscript.Carl Hetherington
2013-11-23Remove libavformat-specific bit from FileGroup.Carl Hetherington
2013-11-23Add FileGroup.Carl Hetherington