From f3dcd85150e1403433b75b42834c626b0719d6ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 24 May 2015 20:57:31 +0200 Subject: video: do not use MP_NOPTS_VALUE for A/V difference There's no need for this, it just creates more corner cases. Also always reset it on seeks etc.. --- player/osd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'player/osd.c') diff --git a/player/osd.c b/player/osd.c index 1f482e2a14..c775197276 100644 --- a/player/osd.c +++ b/player/osd.c @@ -207,10 +207,7 @@ static void print_status(struct MPContext *mpctx) // A-V sync if (mpctx->d_audio && mpctx->d_video && mpctx->sync_audio_to_video) { - if (mpctx->last_av_difference != MP_NOPTS_VALUE) - saddf(&line, " A-V:%7.3f", mpctx->last_av_difference); - else - saddf(&line, " A-V: ???"); + saddf(&line, " A-V:%7.3f", mpctx->last_av_difference); if (fabs(mpctx->total_avsync_change) > 0.05) saddf(&line, " ct:%7.3f", mpctx->total_avsync_change); } -- cgit v1.2.3