summaryrefslogtreecommitdiff
path: root/src/lib/file_group.cc
AgeCommit message (Collapse)Author
2021-07-10Use dcp::compose rather than our own.composeCarl 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