From 31c216d7c3195e7975040ceb5445f200db384c84 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Sun, 17 Feb 2002 17:32:49 +0000 Subject: big debug output cleanup. removed debug output from log window, logging relevant information like stream type/size/bitrate instead. demuxer cleanup, removed no-longer-needed macros :-) switched off video_out/libmpeg2/... verbose log output messages. CVS patchset: 1503 CVS date: 2002/02/17 17:32:49 --- src/libmpeg2/decode.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/libmpeg2/decode.c') diff --git a/src/libmpeg2/decode.c b/src/libmpeg2/decode.c index 5b8cbed14..d3639e882 100644 --- a/src/libmpeg2/decode.c +++ b/src/libmpeg2/decode.c @@ -40,7 +40,9 @@ #define LOG_PAN_SCAN */ +/* #define LOG +*/ #define BUFFER_SIZE (224 * 1024) @@ -253,6 +255,11 @@ static inline int parse_chunk (mpeg2dec_t * mpeg2dec, int code, || (picture->frame_width != picture->coded_picture_width) || (picture->frame_height != picture->coded_picture_height)) { xine_frame_change_event_t notify_event; + + xine_log (mpeg2dec->xine, XINE_LOG_FORMAT, + "libmpeg2: frame size is %d x %d, ratio is %d\n", + picture->frame_width, picture->frame_height, + picture->frame_rate_code); printf ("libmpeg2: frame size has changed to from %d x %d to %d x %d\n", picture->frame_width, picture->frame_height, @@ -565,7 +572,11 @@ void mpeg2_find_sequence_header (mpeg2dec_t * mpeg2dec, picture->frame_width = picture->coded_picture_width; picture->frame_height = picture->coded_picture_height; - printf ("mpeg2dec: frame size %d x %d\n", + xine_log (mpeg2dec->xine, XINE_LOG_FORMAT, + "libmpeg2: frame size is %d x %d\n", + picture->frame_width, picture->frame_height); + + printf ("libmpeg2: frame size %d x %d\n", picture->frame_width, picture->frame_height); notify_event.event.type = XINE_EVENT_FRAME_CHANGE; -- cgit v1.2.3