From 5027469c3b9fbadc0526fc7660634b1556b6788c Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 16 Apr 2014 23:02:17 +0200 Subject: stream_dvdnav: print more debugging info --- stream/stream_dvdnav.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c index 462fa066e4..5a08e22c6f 100644 --- a/stream/stream_dvdnav.c +++ b/stream/stream_dvdnav.c @@ -380,8 +380,12 @@ static int fill_buffer(stream_t *s, char *buf, int max_len) priv->next_event |= 1 << MP_NAV_EVENT_EOF; return 0; } - case DVDNAV_NAV_PACKET: + case DVDNAV_NAV_PACKET: { + pci_t *pnavpci = dvdnav_get_current_nav_pci(dvdnav); + uint32_t start_pts = pnavpci->pci_gi.vobu_s_ptm; + MP_TRACE(s, "start pts = %"PRIu32"\n", start_pts); break; + } case DVDNAV_STILL_FRAME: { dvdnav_still_event_t *still_event = (dvdnav_still_event_t *) buf; priv->still_length = still_event->length; @@ -541,6 +545,7 @@ static int control(stream_t *stream, int cmd, void *arg) } case STREAM_CTRL_SEEK_TO_TIME: { uint64_t tm = (uint64_t) (*((double *)arg) * 90000); + MP_VERBOSE(stream, "seek to PTS %"PRId64"\n", tm); if (dvdnav_time_search(dvdnav, tm) != DVDNAV_STATUS_OK) break; stream_drop_buffers(stream); -- cgit v1.2.3