[MPlayer-dev-eng] [PATCH] dmo.c: replace "printf" with "Debug printf"

Zhou Zongyi zhouzongyi at pset.suntec.net
Mon Dec 8 03:57:25 CET 2008


Hi all,  

When decoding by dmo and piping rawvideo to stdout with mencoder, the data gets polluted.  
The following patch fixed this issue by replacing all "printf" with "Debug printf" in loader/dmo/dmo.c.  

Index: loader/dmo/dmo.c  
===================================================================  
--- loader/dmo/dmo.c (revision 28111)  
+++ loader/dmo/dmo.c (working copy)  
@@ -148,11 +148,11 @@  
    
  inputs = outputs = 0;  
  hr = This->m_pMedia->vt->GetOutputSizeInfo(This->m_pMedia, 0, &inputs, &outputs);  
- printf("GetOutput r=0x%lx size:%ld align:%ld\n", hr, inputs, outputs);  
+ Debug printf("GetOutput r=0x%lx size:%ld align:%ld\n", hr, inputs, outputs);  
    
  // This->m_pMedia->vt->AllocateStreamingResources(This->m_pMedia);  
  hr = This->m_pMedia->vt->GetStreamCount(This->m_pMedia, &inputs, &outputs);  
- printf("StreamCount r=0x%lx %ld %ld\n", hr, inputs, outputs);  
+ Debug printf("StreamCount r=0x%lx %ld %ld\n", hr, inputs, outputs);  
    
         break;  
     }  


Regards,  

ZZ


More information about the MPlayer-dev-eng mailing list