[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    [PATCH] cout III
From:       Martin Vogt <mvogt () rhrk ! uni-kl ! de>
Date:       2000-10-01 15:30:40
[Download RAW message or body]

More debug found. 


Martin


["a.patch" (text/plain)]

? a.patch
? example/yaf/yafyuv/yaf-yuv
? lib/a.patch
Index: lib/input/fileInputStream.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/mpeglib/lib/input/fileInputStream.cpp,v
retrieving revision 1.5
diff -u -r1.5 fileInputStream.cpp
--- lib/input/fileInputStream.cpp	2000/08/31 13:47:30	1.5
+++ lib/input/fileInputStream.cpp	2000/10/01 15:28:57
@@ -56,7 +56,6 @@
       filename=strdup(dest);
     }
   }
-  cout << "open:"<<filename<<endl;
   lockFile();
   if (file == NULL) {
     file=fopen(filename,"r");
Index: lib/mpegplay/mpegVideoLength.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/mpeglib/lib/mpegplay/mpegVideoLength.cpp,v
retrieving revision 1.5
diff -u -r1.5 mpegVideoLength.cpp
--- lib/mpegplay/mpegVideoLength.cpp	2000/10/01 15:10:45	1.5
+++ lib/mpegplay/mpegVideoLength.cpp	2000/10/01 15:28:57
@@ -50,8 +50,6 @@
   realLength=input->getByteLength();
   upperEnd=realLength;
   if (realLength > 1024*1024*600) {
-    cout << "urgh! file too long, we don not jump that wide"<<endl;
-    cout << "using 600 MB"<<endl;
     upperEnd=1024*1024*600;
   }
 }
Index: lib/mpegplay/videoDecoder.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/mpeglib/lib/mpegplay/videoDecoder.cpp,v
retrieving revision 1.4
diff -u -r1.4 videoDecoder.cpp
--- lib/mpegplay/videoDecoder.cpp	2000/09/29 15:38:59	1.4
+++ lib/mpegplay/videoDecoder.cpp	2000/10/01 15:28:57
@@ -22,7 +22,7 @@
 			   MpegVideoHeader* initSequence) {
 
   /* Check for legal buffer length. */
-  cout << "init_tables"<<endl;
+
   init_tables();
 
 
@@ -352,7 +352,6 @@
   }
   if (syncState < SYNC_HAS_I_FRAME_SYNC) {
     if (code_type != I_TYPE) {
-      cout << "********** enforce I frame"<<endl;
       return;
     }
   }
Index: lib/util/render/renderMachine.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/mpeglib/lib/util/render/renderMachine.cpp,v
retrieving revision 1.5
diff -u -r1.5 renderMachine.cpp
--- lib/util/render/renderMachine.cpp	2000/08/08 19:59:54	1.5
+++ lib/util/render/renderMachine.cpp	2000/10/01 15:28:58
@@ -75,13 +75,11 @@
     }
     closeWindow();
   }  
-  cout << "RenderMachine::openWindow"<<endl;
   lok=surface->open(width,height,title);
   pictureArray=new PictureArray(surface->getWidth(),
 				surface->getHeight());
 
   if(lok==false) {
-    cout << "cannot create image"<<endl;
     switchToMode(_IMAGE_NONE,_SIZE_NONE);
     return false;
   }
@@ -96,14 +94,12 @@
 void RenderMachine::closeWindow() {
   
   if (surface->isOpen()==false) {
-    cout << "WindowOut::closeWindow already closed"<<endl;
     return;
   }
   if (pictureArray != NULL) {
     delete pictureArray;
     pictureArray=NULL;
   }
-  cout << "closing surface"<<endl;
   surface->close();
 }
 
Index: lib/util/render/x11/imageDeskX11.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/mpeglib/lib/util/render/x11/imageDeskX11.cpp,v
retrieving revision 1.4
diff -u -r1.4 imageDeskX11.cpp
--- lib/util/render/x11/imageDeskX11.cpp	2000/08/09 14:00:45	1.4
+++ lib/util/render/x11/imageDeskX11.cpp	2000/10/01 15:28:58
@@ -199,9 +199,6 @@
       if(!ximage)
 	return ERR_XI_SHMXIMAGE;
 
-      cout << "XWnd->ximage->bytes_per_line:"
-	   << ximage->bytes_per_line*ximage->height<<endl;
-
       shmseginfo->shmid=shmget(IPC_PRIVATE,
 			       ximage->bytes_per_line*
 			       ximage->height,IPC_CREAT|0777);
@@ -294,10 +291,8 @@
     switch(videoaccesstype) {
 #ifdef X11_SHARED_MEM
     case VIDEO_XI_SHMSTD:
-      cout << "removing shm"<<endl;
       if (shmseginfo) {
 	XShmDetach(xWindow->display,shmseginfo);
-	cout << "removing shm -e"<<endl;
 	if(ximage) {
 	  XDestroyImage(ximage);
 	  ximage=NULL;
@@ -316,16 +311,13 @@
       
 #endif
     case VIDEO_XI_STANDARD:
-      cout << "destroying image std"<<endl;
       if(ximage) {
-	cout << "destroy ximage"<<endl;
 	XDestroyImage(ximage);
 	ximage=NULL;
 	/*
 	  XDestroyImage function calls frees both the image structure
           and the data pointed to by the image structure.
 	*/
-	cout << "destroy virtualscreen"<<endl;
 	virtualscreen=NULL;
       }
       break;
Index: lib/util/render/x11/initDisplay.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/mpeglib/lib/util/render/x11/initDisplay.cpp,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 initDisplay.cpp
--- lib/util/render/x11/initDisplay.cpp	2000/07/04 19:22:05	1.1.1.1
+++ lib/util/render/x11/initDisplay.cpp	2000/10/01 15:28:58
@@ -229,9 +229,6 @@
       unsigned long tmp_pixel;
       XWindowAttributes xwa;
 
-      printf("Using private colormap.\n");
-
-
       // Free colors. 
       for (j = 0; j < i; j ++) {
         tmp_pixel = wpixel[j];
Index: lib/util/render/x11/x11Surface.cpp
===================================================================
RCS file: /home/kde/kdemultimedia/mpeglib/lib/util/render/x11/x11Surface.cpp,v
retrieving revision 1.9
diff -u -r1.9 x11Surface.cpp
--- lib/util/render/x11/x11Surface.cpp	2000/09/29 15:38:59	1.9
+++ lib/util/render/x11/x11Surface.cpp	2000/10/01 15:28:58
@@ -153,7 +153,6 @@
 
   } else {
     // depth is <= 8
-    cout << "depth is <= 8 not supported"<<endl;
     // allocate memory for dithertables
     // gets the rgb masks
     initColorDisplay(xWindow);

_______________________________________________
Kde-multimedia mailing list
Kde-multimedia@master.kde.org
http://master.kde.org/mailman/listinfo/kde-multimedia


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic