summaryrefslogtreecommitdiffstats
path: root/player/osd.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-24 20:57:31 +0200
committerwm4 <wm4@nowhere>2015-05-24 23:27:23 +0200
commitf3dcd85150e1403433b75b42834c626b0719d6ca (patch)
tree0f0100f97214ae20325fc2b98a313e25b42601b9 /player/osd.c
parent58e7d0a30be40efbdce93d9a79b6a7def4d36451 (diff)
downloadmpv-f3dcd85150e1403433b75b42834c626b0719d6ca.tar.bz2
mpv-f3dcd85150e1403433b75b42834c626b0719d6ca.tar.xz
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..
Diffstat (limited to 'player/osd.c')
-rw-r--r--player/osd.c5
1 files changed, 1 insertions, 4 deletions
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);
}