From 361be8385b95acdfb5bfd83f391041d8a8b17243 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 6 Jul 2014 19:03:05 +0200 Subject: stream_dvdnav: more debugging output --- stream/stream_dvdnav.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'stream/stream_dvdnav.c') 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: { -- cgit v1.2.3