summaryrefslogtreecommitdiff
path: root/src/libmpeg2/decode.c
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2002-02-17 17:32:49 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2002-02-17 17:32:49 +0000
commit31c216d7c3195e7975040ceb5445f200db384c84 (patch)
treebd34b07ef3db8ab9dab46229c6289321eb12f324 /src/libmpeg2/decode.c
parent5106a372ebd84fda2e004541efebd7c366201efd (diff)
downloadxine-lib-31c216d7c3195e7975040ceb5445f200db384c84.tar.gz
xine-lib-31c216d7c3195e7975040ceb5445f200db384c84.tar.bz2
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
Diffstat (limited to 'src/libmpeg2/decode.c')
-rw-r--r--src/libmpeg2/decode.c13
1 files changed, 12 insertions, 1 deletions
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;