summaryrefslogtreecommitdiff
path: root/src/xine-engine/video_out.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-03-12 19:51:29 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-03-12 19:51:29 +0000
commit74b8f70949bc265b12f5716fd162e3be9a141d88 (patch)
treeae2f05fa010513bcfa3e25b01c08c214821997ca /src/xine-engine/video_out.c
parent995d0f7e8a08bb813c24a49d5bae681d5585fb8c (diff)
downloadxine-lib-74b8f70949bc265b12f5716fd162e3be9a141d88.tar.gz
xine-lib-74b8f70949bc265b12f5716fd162e3be9a141d88.tar.bz2
getting rid of more LOG_ macros => output messages only once ... and another metronom drift update - will I ever get this one correct?
CVS patchset: 1564 CVS date: 2002/03/12 19:51:29
Diffstat (limited to 'src/xine-engine/video_out.c')
-rw-r--r--src/xine-engine/video_out.c40
1 files changed, 10 insertions, 30 deletions
diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c
index ee61adc8e..bc7358cc7 100644
--- a/src/xine-engine/video_out.c
+++ b/src/xine-engine/video_out.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 2000-2002 the xine project
*
- * This file is part of xine, a unix video player.
+ * This file is part of xine, a free video player.
*
* xine is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -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.78 2002/03/01 09:29:50 guenter Exp $
+ * $Id: video_out.c,v 1.79 2002/03/12 19:51:29 guenter Exp $
*
* frame allocation / queuing / scheduling / output functions
*/
@@ -40,26 +40,6 @@
#include "xine_internal.h"
#include "xineutils.h"
-#ifdef __GNUC__
-#define LOG_MSG_STDERR(xine, message, args...) { \
- xine_log(xine, XINE_LOG_MSG, message, ##args); \
- fprintf(stderr, message, ##args); \
- }
-#define LOG_MSG(xine, message, args...) { \
- xine_log(xine, XINE_LOG_MSG, message, ##args); \
- printf(message, ##args); \
- }
-#else
-#define LOG_MSG_STDERR(xine, ...) { \
- xine_log(xine, XINE_LOG_MSG, __VA_ARGS__); \
- fprintf(stderr, __VA_ARGS__); \
- }
-#define LOG_MSG(xine, ...) { \
- xine_log(xine, XINE_LOG_MSG, __VA_ARGS__); \
- printf(__VA_ARGS__); \
- }
-#endif
-
/*
#define LOG
*/
@@ -320,10 +300,10 @@ static int vo_frame_draw (vo_frame_t *img) {
*/
if (this->num_frames_delivered>199) {
- LOG_MSG_STDERR(this->xine,
- _("%d frames delivered, %d frames skipped, %d frames discarded\n"),
- this->num_frames_delivered,
- this->num_frames_skipped, this->num_frames_discarded);
+ xine_log(this->xine, XINE_LOG_MSG,
+ _("%d frames delivered, %d frames skipped, %d frames discarded\n"),
+ this->num_frames_delivered,
+ this->num_frames_skipped, this->num_frames_discarded);
this->num_frames_delivered = 0;
this->num_frames_discarded = 0;
@@ -373,9 +353,9 @@ static void expire_frames (vos_t *this, int64_t cur_vpts) {
diff = cur_vpts - pts;
if (diff > img->duration) {
- LOG_MSG(this->xine,
- _("video_out: throwing away image with pts %lld because "
- "it's too old (diff : %lld).\n"), pts, diff);
+ xine_log(this->xine, XINE_LOG_MSG,
+ _("video_out: throwing away image with pts %lld because "
+ "it's too old (diff : %lld).\n"), pts, diff);
this->num_frames_discarded++;
@@ -1004,7 +984,7 @@ vo_instance_t *vo_new_instance (vo_driver_t *driver, xine_t *xine) {
printf (_("video_out: sorry, this should not happen. please restart xine.\n"));
exit(1);
} else
- LOG_MSG(this->xine, _("video_out: thread created\n"));
+ printf ("video_out: thread created\n");
return &this->vo;
}