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 /demux/demux.c | |
parent | d328b2088c6e4b55473fe6969d7c540677831f47 (diff) | |
download | mpv-b1a56d11fe805ac64e43e2f16cc6ce11da69a6ca.tar.bz2 mpv-b1a56d11fe805ac64e43e2f16cc6ce11da69a6ca.tar.xz |
player: add some debug output for seeking
Diffstat (limited to 'demux/demux.c')
-rw-r--r-- | demux/demux.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/demux/demux.c b/demux/demux.c index d4754b7bb0..29a4fec93e 100644 --- a/demux/demux.c +++ b/demux/demux.c @@ -527,9 +527,13 @@ static void execute_seek(struct demux_internal *in) pthread_mutex_unlock(&in->lock); + MP_VERBOSE(in, "execute seek (to %f flags %d)\n", pts, flags); + if (in->d_thread->desc->seek) in->d_thread->desc->seek(in->d_thread, pts, flags); + MP_VERBOSE(in, "seek done\n"); + pthread_mutex_lock(&in->lock); } @@ -1124,6 +1128,9 @@ int demux_seek(demuxer_t *demuxer, double rel_seek_secs, int flags) pthread_mutex_lock(&in->lock); + MP_VERBOSE(in, "queuing seek to %f%s\n", rel_seek_secs, + in->seeking ? " (cascade)" : ""); + flush_locked(demuxer); in->seeking = true; in->seek_flags = flags; |