diff options
author | wm4 <wm4@nowhere> | 2015-06-18 22:31:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-18 22:31:55 +0200 |
commit | b1a56d11fe805ac64e43e2f16cc6ce11da69a6ca (patch) | |
tree | 4aa60f4c05d01f3c9f138768f95eb11acb513e3b /player | |
parent | d328b2088c6e4b55473fe6969d7c540677831f47 (diff) | |
download | mpv-b1a56d11fe805ac64e43e2f16cc6ce11da69a6ca.tar.bz2 mpv-b1a56d11fe805ac64e43e2f16cc6ce11da69a6ca.tar.xz |
player: add some debug output for seeking
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 4 | ||||
-rw-r--r-- | player/video.c | 1 |
2 files changed, 5 insertions, 0 deletions
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); |