mpv
mpv copied to clipboard
Assertion `mpctx->stop_play' failed when playlist contains --play-dir=- then change to --play-dir=+
Important Information
Provide following Information:
- mpv version = 1:0.34.1-5 according to
pacman -Q --info mpv, 0.34.1-dirty according tompv --version - Linux Distribution and Version = arch linux, 5.15.73-1-lts
- Source of the mpv binary = pacman
- If known which version of mpv introduced the problem = n/a
- Window Manager and version = kde plasma 5.26.0
- GPU driver and version = nvidia 520.56.06
- Possible screenshot or video of visual glitches = n/a
Reproduction steps
The goal is to create a playlist with ping pong loop, play the video forwards, then backwards, etc.
When --play-dir=- is specified for a single item in the playlist, any next item in the playlist with positive play direction causes as crash with this assertion error:
mpv: ../player/loadfile.c:1785: play_current_file: Assertion `mpctx->stop_play' failed.
Examples:
mpv --loop-playlist video.mp4 --\{ --play-dir=- video.mp4 --\}plays video.mp4 once forward then once backwards then crash with above assertion errormpv --loop-playlist --\{ --play-dir=- video.mp4 --\} video.mp4plays video.mp4 once backwards then crashes with assertion errormpv --loop-playlist --play-dir=- video.mp4plays video.mp4 backwards and loops without crashing
Expected behavior
There should not be an assertion error when playing one file backwards then the next file forwards. The video should play in a ping-pong style loop going forwards then reverse, etc.
Actual behavior
There is an assertion error when playing one file backwards then the next file forwards
Log file
output for mpv --loop-playlist --loop-file=no --log-file=output.txt --\{ --play-dir=- video.webm --\} video.webm
https://0x0.st/ox54.txt
Sample files
n/a