From 78cf974375dee0334288697723022514403f81a6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 17 Nov 2019 02:11:28 +0100 Subject: options: deprecate --video-sync=display-adrop A stupid thing that will probably be in the way. --- player/core.h | 1 + player/video.c | 6 ++++++ 2 files changed, 7 insertions(+) (limited to 'player') diff --git a/player/core.h b/player/core.h index 7827490f73..ffe3905765 100644 --- a/player/core.h +++ b/player/core.h @@ -341,6 +341,7 @@ typedef struct MPContext { // Timing error (in seconds) due to rounding on vsync boundaries double display_sync_error; double audio_drop_throttle; + bool audio_drop_deprecated_msg; // Number of mistimed frames. int mistimed_frames_total; bool hrseek_active; // skip all data until hrseek_pts diff --git a/player/video.c b/player/video.c index e0353700f0..b5f27e77d6 100644 --- a/player/video.c +++ b/player/video.c @@ -784,6 +784,12 @@ static void handle_display_sync_frame(struct MPContext *mpctx, mpctx->display_sync_active = false; + if (mode == VS_DISP_ADROP && !mpctx->audio_drop_deprecated_msg) { + MP_WARN(mpctx, "video-sync=display-adrop mode is deprecated and will " + "be removed in the future.\n"); + mpctx->audio_drop_deprecated_msg = true; + } + if (!VS_IS_DISP(mode)) return; bool resample = mode == VS_DISP_RESAMPLE || mode == VS_DISP_RESAMPLE_VDROP || -- cgit v1.2.3