From 6cd47d3b445a4b56c9e16c722e6fca4fc3b12b74 Mon Sep 17 00:00:00 2001 From: Torsten Jager Date: Mon, 23 Dec 2013 15:10:50 +0100 Subject: Add metronom video pts debug string. --- src/xine-engine/metronom.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/xine-engine/metronom.c b/src/xine-engine/metronom.c index 3e87b4651..cb9cb7d65 100644 --- a/src/xine-engine/metronom.c +++ b/src/xine-engine/metronom.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2000-2012 the xine project + * Copyright (C) 2000-2013 the xine project * * This file is part of xine, a free video player. * @@ -365,7 +365,7 @@ static void metronom_handle_discontinuity (metronom_t *this, int type, this->vpts_offset = this->video_vpts - disc_off; break; } - + this->last_video_pts = 0; this->last_audio_pts = 0; } @@ -544,6 +544,9 @@ static void metronom_got_video_frame (metronom_t *this, vo_frame_t *img) { } pthread_mutex_unlock (&this->lock); + if (this->xine->verbosity == XINE_VERBOSITY_DEBUG + 1) + xprintf (this->xine, XINE_VERBOSITY_DEBUG + 1, "metronom: video pts: %"PRId64":%04d -> %"PRId64"\n", + img->pts, (int)img->duration, img->vpts); } static void metronom_handle_audio_discontinuity (metronom_t *this, int type, -- cgit v1.2.3