mirror of https://github.com/mpv-player/mpv
player: show AV-desync message in all framedrop modes
This was shown only if decoder-framedropping was enabled, and only if at least 50 frames were dropped by it. Since drop_frame_cnt used to mean "number of late frames", this code made sense, but this is not the case anymore: drop_frame_cnt can be even 0, all while video gets hopelessly behind audio. One problem with this is that short desync spikes (which usually can probably dealt with) will also cause this message to be shown. If it gets triggered too often, the code will need to be adjusted.
This commit is contained in:
parent
b66669ef2c
commit
0e97808fc5
|
@ -682,8 +682,7 @@ static void update_avsync_after_frame(struct MPContext *mpctx)
|
|||
mpctx->time_frame * mpctx->opts->playback_speed;
|
||||
if (a_pos == MP_NOPTS_VALUE || mpctx->video_pts == MP_NOPTS_VALUE)
|
||||
mpctx->last_av_difference = MP_NOPTS_VALUE;
|
||||
if (mpctx->last_av_difference > 0.5 && mpctx->drop_frame_cnt > 50
|
||||
&& !mpctx->drop_message_shown) {
|
||||
if (mpctx->last_av_difference > 0.5 && !mpctx->drop_message_shown) {
|
||||
MP_WARN(mpctx, "%s", av_desync_help_text);
|
||||
mpctx->drop_message_shown = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue