Skip to content

conditional auto profiles may not be triggered if their properties in profile-cond change too fast #17105

@verygoodlee

Description

@verygoodlee

mpv Information

mpv v0.40.0-dev-gdbd7a905b Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on Dec  4 2025 16:44:20
libplacebo version: v7.358.0
FFmpeg version: git-2025-12-04-e0845ec
FFmpeg library versions:
   libavcodec      62.21.100
   libavdevice     62.2.100
   libavfilter     11.10.101
   libavformat     62.6.103
   libavutil       60.19.101
   libswresample   6.2.100
   libswscale      9.3.100

Other Information

- Windows version: Win10 22H2 [Version 10.0.19045.6456]
- GPU model, driver and version:
- Source of mpv: https://nightly.link/mpv-player/mpv/workflows/build/master
- Latest known working version:
- Issue started after the following happened:

Reproduction Steps

  • config files

mpv.conf

log-file=log.txt
osd-msg1=${speed}
input-ar-rate=40

[clamp_speed_min]
profile-cond=speed < 0.1
speed=0.1

[clamp_speed_max]
profile-cond=speed > 4
speed=4

input.conf

UP   add speed  0.1
DOWN add speed -0.1
  • hold down the up arrow key and don't release it

Expected Behavior

speed reset to 4 when it exceeds 4, as the clamp_speed_max profile expected.

Actual Behavior

after holding down the up arrow key for a while, the speed exceeded 4.

2025126-122344.mp4

the larger input-ar-rate is, the easier it is to reproduce this issue.
after reducing its value to 20, the issue will no longer reproduce.

Log File

log.txt

Sample Files

N/A

I carefully read all instruction and confirm that I did the following:

  • I tested with the latest mpv version to validate that the issue is not already fixed.
  • I provided all required information including system and mpv version.
  • I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of --log-file=output.txt.
  • I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
  • I attached the full, untruncated log file.
  • I attached the backtrace in the case of a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions