diff options
author | wm4 <wm4@nowhere> | 2014-07-06 19:03:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-07-06 19:03:05 +0200 |
commit | 361be8385b95acdfb5bfd83f391041d8a8b17243 (patch) | |
tree | 70afd351d32ac8805b2b90bd566388143c76894d | |
parent | f3604fc3fb706662278ff2e80f4049651f2ea253 (diff) | |
download | mpv-361be8385b95acdfb5bfd83f391041d8a8b17243.tar.bz2 mpv-361be8385b95acdfb5bfd83f391041d8a8b17243.tar.xz |
stream_dvdnav: more debugging output
-rw-r--r-- | stream/stream_dvdnav.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index c366831aca..de604f91ff 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -546,15 +546,18 @@ static int control(stream_t *stream, int cmd, void *arg) return STREAM_OK; } case STREAM_CTRL_SEEK_TO_TIME: { - int64_t tm = (int64_t) (*((double *)arg) * 90000); + double d = *(double *)arg; + int64_t tm = (int64_t)(d * 90000); if (tm < 0) tm = 0; if (priv->duration && tm >= (priv->duration * 90)) tm = priv->duration * 90 - 1; - MP_VERBOSE(stream, "seek to PTS %"PRId64"\n", tm); + MP_VERBOSE(stream, "seek to PTS %f (%"PRId64")\n", d, tm); if (dvdnav_time_search(dvdnav, tm) != DVDNAV_STATUS_OK) break; stream_drop_buffers(stream); + d = dvdnav_get_current_time(dvdnav) / 90000.0f; + MP_VERBOSE(stream, "landed at: %f\n", d); return STREAM_OK; } case STREAM_CTRL_GET_NUM_ANGLES: { |