From b1a56d11fe805ac64e43e2f16cc6ce11da69a6ca Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 18 Jun 2015 22:31:55 +0200 Subject: player: add some debug output for seeking --- player/playloop.c | 4 ++++ player/video.c | 1 + 2 files changed, 5 insertions(+) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index 2b389def22..f92f70ba04 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -287,6 +287,9 @@ static int mp_seek(MPContext *mpctx, struct seek_params seek, mpctx->hrseek_framedrop = !hr_seek_very_exact; mpctx->hrseek_pts = hr_seek ? seek.amount : mpctx->timeline[mpctx->timeline_part].start; + + MP_VERBOSE(mpctx, "hr-seek, skipping to %f%s\n", mpctx->hrseek_pts, + mpctx->hrseek_framedrop ? "" : " (no framedrop)"); } mpctx->start_timestamp = mp_time_sec(); @@ -960,6 +963,7 @@ static void handle_playback_restart(struct MPContext *mpctx, double endpts) } } mpctx->playing_msg_shown = true; + MP_VERBOSE(mpctx, "playback restart complete\n"); } } diff --git a/player/video.c b/player/video.c index d18d75bf5a..c4840f39d9 100644 --- a/player/video.c +++ b/player/video.c @@ -887,6 +887,7 @@ void write_video(struct MPContext *mpctx, double endpts) mpctx->video_status = STATUS_READY; // After a seek, make sure to wait until the first frame is visible. vo_wait_frame(vo); + MP_VERBOSE(mpctx, "first video frame after restart shown\n"); } screenshot_flip(mpctx); -- cgit v1.2.3