summaryrefslogtreecommitdiff
path: root/test/player_test.cc
AgeCommit message (Collapse)Author
2025-12-31Fix mismatched audio reel length (#3123).Carl Hetherington
2025-11-05Allow specification of which parts of the DCP to encrypt (#3099).Carl Hetherington
2025-11-04Fix ineffectual attempt to set up special test logging.Carl Hetherington
2025-11-04Fix failure to play any audio when one stream isn't producing anything (#3108)Carl Hetherington
Without this we consider a never-pushed stream active, but with position 0, so we think we never have any audio ready.
2025-08-12Replace AVPixelFormat parameter to PlayerVideo::image with a functor.Carl Hetherington
This was removed in df9b4676aba8b941f124b174393988cad21677e1 and surrounding commits, but it turns out we need it after all.
2025-07-15Change Film::examine_and_add_content to take a vector of content.Carl Hetherington
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
2025-05-26Remove functors for choosing pixel format output from make_image().Carl Hetherington
2025-03-06Fix black frames when raising frame rate by a lot (#2993).Carl Hetherington
2025-01-20Pass tolerant flag into Player.Carl Hetherington
This is needed because the DCPDecoder ends up needing it when it reads reel information from CPLs. Maybe all that stuff should be in our metadata.
2024-05-22Rename new_test_film2 -> new_test_film.Carl Hetherington
2024-05-21Replace all new_test_film with new_test_film2.Carl Hetherington
2024-05-20More cleanups.Carl Hetherington
2024-05-19Merge remote-tracking branch 'origin/main' into v2.17.xCarl Hetherington
2024-05-17Make sure we don't say some content has audio if none will be emitted.Carl Hetherington
In the FFmpeg (and shortly DCP) case we don't emit any audio if none is mapped, so we must take this into account in the player.
2024-02-19Reset _next_video_time when deciding to emit black.Carl Hetherington
Otherwise if we inaccurately seek into an area with no video there will never be any content coming into ::video() which could reset _next_video_time. Then when a black frame is emitted using emit_video_until we will emit black frames from time 0 to the time of the inaccurate seek.
2023-08-06Go back to respecting the user's choice for the number of audio channels in ↵Carl Hetherington
the MXF.
2023-07-29Don't check sound assets in some tests.Carl Hetherington
When fiddling with MXF channel counts it makes a lot of tests fail that probably don't need to.
2023-06-30Clean up after some more tests.Carl Hetherington
2023-02-27Remove debug message.Carl Hetherington
2023-02-01Handle 2D/3D mismatches in the player (#2409).Carl Hetherington
Previously if there was 2D content in a 3D project (or vice versa) the player would emit the video anyway and the encoder would have to deal with it. Since previously the FFmpeg encoder did not deal with this quite right, it seems to make sense to move the logic into the player so that neither encoder has to worry about it.
2022-11-26Noisy change to get film into AudioContent::modify_trim_start().Carl Hetherington
2022-11-26Add another test, including a frame rate change.Carl Hetherington
2022-11-26Add failing test for #2373.Carl Hetherington
2022-11-25Fix sound corruption with multiple sound files (#2368).Carl Hetherington
last_push_end would be initialised to the position of the content, meaning that content at (for example) 60s into the project would be treated as the leader, and content much earlier would then be considered finished by the code which checks ignore_streams_behind (as its last push was more then 5s before the leader). This caused audio corruption, shown up by the test here.
2022-10-17Remove some more unnecessary use of shared_ptr.Carl Hetherington
2022-07-11Use a vector rather than a list when returning from content_factory().Carl Hetherington
2022-06-12Set up TextDecoder position based on the time that the next thing willv2.16.14Carl Hetherington
be emitted, instead of the time that the last thing was (#2268). This is to avoid problems with the example shown in the test, where just because a subtitle in source A comes before a subtitle in source B, source A is pass()ed next and may then emit a subtitle which should be after the next one in B.
2022-05-26Fix race between the Butler thread starting and audio (perhaps) being disabled.Carl Hetherington
This could cause Butler::audio to be called with _audio_channels = 0 and _disable_audio = false, causing an exception in AudioBuffers when remap() tried to make an AudioBuffers object with a channel count of 0.
2022-05-21Fix error when loading encrypted DCPs (#2257).Carl Hetherington
In d1b4dbb793e2850d032ce3c91f0c91d045ae19dc I changed have_video() to look at can_be_played() but forgot to also change have_audio().
2022-04-07Cleanup: remove unused parameter to PlayerVideo::force.Carl Hetherington
2022-01-11Fix failure to decode multiple video frames from one packet (#2159).v2.15.183Carl Hetherington
2021-10-16Use an enum instead of a bool to specify blocking/non-blocking.Carl Hetherington
2021-09-27Test fixes.better-glCarl Hetherington
2021-09-27Various alignment tidying/fixups.Carl Hetherington
2021-09-27Replace aligned bool with enum Alignment.Carl Hetherington
2021-09-27Various alignment adjustments.Carl Hetherington
2021-09-27Setup Butler::_prepare_only_proxy on construction.Carl Hetherington
2021-02-26More verification of DCPs during tests.Carl Hetherington
2021-01-31More enum class additions.Carl Hetherington
2021-01-27Use enum class for VideoRange.Carl Hetherington
2021-01-07std::shared_ptrCarl Hetherington
2020-12-01Give Butler a weak_ptr<Film>Carl Hetherington
2020-11-29Move some test references into test-private.Carl Hetherington
2020-11-16Make sure we use limited ("video") range data when exporting.Carl Hetherington
Our export formats all currently use limited range but we weren't making sure data fed to the encoders was limited range. Should fix #1832.
2020-10-13Remove some debug output.Carl Hetherington
2020-10-13Some macOS test build fixes.Carl Hetherington
2020-10-13Fix use of DCPOMATIC_TEST_PRIVATE variable to specify whereCarl Hetherington
test private data is.
2020-10-12Remove Image/GraphicsMagick dependency.Carl Hetherington