diff options
author | Torsten Jager <t.jager@gmx.de> | 2013-12-23 15:10:50 +0100 |
---|---|---|
committer | Torsten Jager <t.jager@gmx.de> | 2013-12-23 15:10:50 +0100 |
commit | 6cd47d3b445a4b56c9e16c722e6fca4fc3b12b74 (patch) | |
tree | d40c2235c5d3b8ea1b8bdac12e82744a1caf3517 | |
parent | 283a029b1304c07548ae37a121abdd25234636c4 (diff) | |
download | xine-lib-6cd47d3b445a4b56c9e16c722e6fca4fc3b12b74.tar.gz xine-lib-6cd47d3b445a4b56c9e16c722e6fca4fc3b12b74.tar.bz2 |
Add metronom video pts debug string.
-rw-r--r-- | src/xine-engine/metronom.c | 7 |
1 files 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, |