From bf24814f09103eacadc70f02daf848175158c3a9 Mon Sep 17 00:00:00 2001 From: Daniel Caujolle-Bert Date: Fri, 7 May 2004 22:49:24 +0000 Subject: move lprintf to the right location (where variables are initialized) CVS patchset: 6497 CVS date: 2004/05/07 22:49:24 --- src/xine-engine/video_out.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index 2f8deadf0..1886db0f8 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.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: video_out.c,v 1.191 2004/04/26 17:50:13 mroi Exp $ + * $Id: video_out.c,v 1.192 2004/05/07 22:49:24 f1rmb Exp $ * * frame allocation / queuing / scheduling / output functions */ @@ -400,6 +400,10 @@ static int vo_frame_draw (vo_frame_t *img, xine_stream_t *stream) { if (frames_to_skip<0) frames_to_skip = 0; + + lprintf ("delivery diff : %" PRId64 ", current vpts is %" PRId64 ", %d frames to skip\n", + diff, cur_vpts, frames_to_skip); + } else { frames_to_skip = 0; @@ -411,9 +415,6 @@ static int vo_frame_draw (vo_frame_t *img, xine_stream_t *stream) { } - lprintf ("delivery diff : %" PRId64 ", current vpts is %" PRId64 ", %d frames to skip\n", - diff, cur_vpts, frames_to_skip); - if (!img->bad_frame) { /* do not call proc_*() for frames that will be dropped */ @@ -1120,6 +1121,7 @@ int xine_get_next_video_frame (xine_video_port_t *this_gen, continue; } + /* FIXME: ugly, use conditions and locks instead? */ pthread_mutex_lock(&this->display_img_buf_queue->mutex); @@ -1468,8 +1470,7 @@ static void vo_flush (xine_video_port_t *this_gen) { } } -xine_video_port_t *_x_vo_new_port (xine_t *xine, vo_driver_t *driver, - int grabonly) { +xine_video_port_t *_x_vo_new_port (xine_t *xine, vo_driver_t *driver, int grabonly) { vos_t *this; int i; -- cgit v1.2.3