# HG changeset patch # User diego # Date 1229030941 0 # Node ID 1e6d3a382e7b8bb2df025b93dd493fb917616e05 # Parent a15dadb6305a52a140cc51f7d77d3877013d7216 Change some printf calls to 'Debug printf' so as not to pollute stdout. based on a patch by Zhou Zongyi, zhouzongyi pset.suntec net diff -r a15dadb6305a -r 1e6d3a382e7b loader/dmo/dmo.c --- a/loader/dmo/dmo.c Wed Dec 10 21:15:55 2008 +0000 +++ b/loader/dmo/dmo.c Thu Dec 11 21:29:01 2008 +0000 @@ -117,9 +117,9 @@ //VIDEOINFOHEADER* vi; memset(&dmo, 0, sizeof(dmo)); i = This->m_pMedia->vt->GetOutputType(This->m_pMedia, 0, 2, &dmo); - printf("GetOutputType %x \n", i); - printf("DMO 0x%x (%.4s) 0x%x (%.4s)\n" - //printf("DMO 0x%x 0x%x\n" + Debug printf("GetOutputType %x \n", i); + Debug printf("DMO 0x%x (%.4s) 0x%x (%.4s)\n" + //Debug printf("DMO 0x%x 0x%x\n" ":: fixszsamp:%d tempcomp:%d sampsz:%ld\n" ":: formtype: 0x%x\n" ":: unk %p cbform: %ld pbform:%p\n", @@ -135,7 +135,7 @@ /* vi = (VIDEOINFOHEADER*) dmo.pbFormat; vi = (VIDEOINFOHEADER*) out_fmt->pbFormat; for (i = 0; i < out_fmt->cbFormat; i++) - printf("BYTE %d %02x %02x\n", i, ((uint8_t*)dmo.pbFormat)[i], ((uint8_t*)out_fmt->pbFormat)[i]); + Debug printf("BYTE %d %02x %02x\n", i, ((uint8_t*)dmo.pbFormat)[i], ((uint8_t*)out_fmt->pbFormat)[i]); */ } @@ -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; }