Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
现在采用的绘制方式是 mpv 按需 向fbo绘制视频,在需要显示时把这个fbo绘制到屏幕上。这会导致视频停止播放后fbo残留最后一帧画面,在下一个视频加载之初,这样的残留图像就被显示出来了。
在视频播放前调用一次 reset,可以强制mpv输出一次画面,因为在输出时mpv没有在播放视频,所以画面被置为背景色(默认为黑色),就相当于清屏了。