0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-19 19:42:24 +02:00

fuzzer_set_property: ensure idle is enabled

It is used in play loop to check if playback ended cleanly. Don't allow
set_property to disable idle.
This commit is contained in:
Kacper Michajłow 2024-08-03 11:09:51 +02:00
parent ec40dcca9b
commit 25f441b740

View File

@ -84,6 +84,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
check_error(mpv_set_option_string(ctx, "pause", "no"));
check_error(mpv_set_option_string(ctx, "untimed", "yes"));
check_error(mpv_set_option_string(ctx, "sstep", "0"));
check_error(mpv_set_option_string(ctx, "idle", "yes"));
mpv_node node = {
.format = MPV_FORMAT_NODE_ARRAY,