From 04879d7468156cff56c149e81767eb1eaed74da7 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Fri, 24 Mar 2006 19:56:46 +0000 Subject: Report audio vpts/clock errors. (Reinhard Nissl) CVS patchset: 7945 CVS date: 2006/03/24 19:56:46 --- src/xine-engine/audio_out.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index e42f1cb90..e394a47c0 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.198 2006/03/07 08:03:22 tmattern Exp $ + * $Id: audio_out.c,v 1.199 2006/03/24 19:56:46 dsalt Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -1034,6 +1034,11 @@ static void *ao_loop (void *this_gen) { } } + if ((in_buf->vpts - cur_time) > 2 * 90000) + xprintf (this->xine, XINE_VERBOSITY_DEBUG, + "audio_out: vpts/clock error, in_buf->vpts=%" PRId64 " cur_time=%" PRId64 "\n", + next_frame_vpts, vpts); + lprintf ("loop:pause: I feel sleepy (%d buffers).\n", this->out_fifo->num_buffers); xine_usec_sleep (10000); lprintf ("loop:pause: I wake up.\n"); -- cgit v1.2.3