From e76d60c53d666cc42408bcea5e4060ac173798dd Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Wed, 26 Nov 2003 23:44:08 +0000 Subject: xprintf clean pass. xprintf now log into new XINE_LOG_TRACE log buffer. scratch buffer enhancement (thanks Thibaut for the malloc tips), enlarge log buffer from 25 lines (very useless), to 150 (better). CVS patchset: 5801 CVS date: 2003/11/26 23:44:08 --- src/dxr3/dxr3_decode_video.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/dxr3/dxr3_decode_video.c') diff --git a/src/dxr3/dxr3_decode_video.c b/src/dxr3/dxr3_decode_video.c index e0db85f29..ded0a5624 100644 --- a/src/dxr3/dxr3_decode_video.c +++ b/src/dxr3/dxr3_decode_video.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_decode_video.c,v 1.45 2003/11/16 23:33:44 f1rmb Exp $ + * $Id: dxr3_decode_video.c,v 1.46 2003/11/26 23:44:09 f1rmb Exp $ */ /* dxr3 video decoder plugin. @@ -556,13 +556,13 @@ static void dxr3_decode_data(video_decoder_t *this_gen, buf_element_t *buf) printf("dxr3_decode_video: set video pts failed (%s)\n", strerror(errno)); } - if (this->stream->xine->verbosity >= XINE_VERBOSITY_DEBUG) { - if (delay >= 90000) /* frame more than 1 sec ahead */ - printf("dxr3_decode_video: WARNING: vpts %lld is %.02f seconds ahead of time!\n", - vpts, delay/90000.0); - if (delay < 0) - printf("dxr3_decode_video: WARNING: overdue frame.\n"); - } + + if (delay >= 90000) /* frame more than 1 sec ahead */ + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, + "dxr3_decode_video: WARNING: vpts %lld is %.02f seconds ahead of time!\n", + vpts, delay/90000.0); + if (delay < 0) + xprintf(this->stream->xine, XINE_VERBOSITY_DEBUG, "dxr3_decode_video: WARNING: overdue frame.\n"); } #if LOG_PTS else if (buf->pts) { -- cgit v1.2.3