mpv icon indicating copy to clipboard operation
mpv copied to clipboard

Assertion `mpctx->stop_play' failed when playlist contains --play-dir=- then change to --play-dir=+

Open digitalsignalperson opened this issue 3 years ago • 0 comments

Important Information

Provide following Information:

  • mpv version = 1:0.34.1-5 according to pacman -Q --info mpv, 0.34.1-dirty according to mpv --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 error
  • mpv --loop-playlist --\{ --play-dir=- video.mp4 --\} video.mp4 plays video.mp4 once backwards then crashes with assertion error
  • mpv --loop-playlist --play-dir=- video.mp4 plays 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

digitalsignalperson avatar Oct 24 '22 22:10 digitalsignalperson