diff loader/dmo/dmo.c @ 37193:82a15e343f94

dmo: print messages to stderr instead of stdout.
author reimar
date Sat, 27 Sep 2014 18:44:47 +0000
parents 277b0288b0f9
children
line wrap: on
line diff
--- a/loader/dmo/dmo.c	Sat Sep 27 18:44:46 2014 +0000
+++ b/loader/dmo/dmo.c	Sat Sep 27 18:44:47 2014 +0000
@@ -88,15 +88,15 @@
             /* query for some extra available interface */
 	    HRESULT r = object->vt->QueryInterface(object, &IID_IMediaObjectInPlace, (void*)&This->m_pInPlace);
             if (r == 0 && This->m_pInPlace)
-		printf("DMO dll supports InPlace - PLEASE REPORT to developer\n");
+		fprintf(stderr, "DMO dll supports InPlace - PLEASE REPORT to developer\n");
 	    r = object->vt->QueryInterface(object, &IID_IDMOVideoOutputOptimizations, (void*)&This->m_pOptim);
 	    if (r == 0 && This->m_pOptim)
 	    {
                 unsigned long flags;
 		r = This->m_pOptim->vt->QueryOperationModePreferences(This->m_pOptim, 0, &flags);
-		printf("DMO dll supports VO Optimizations %ld %lx\n", r, flags);
+		fprintf(stderr, "DMO dll supports VO Optimizations %ld %lx\n", r, flags);
 		if (flags & DMO_VOSF_NEEDS_PREVIOUS_SAMPLE)
-		    printf("DMO dll might use previous sample when requested\n");
+		    fprintf(stderr, "DMO dll might use previous sample when requested\n");
 	    }
 	}
 	object->vt->Release((IUnknown*)object);
@@ -159,7 +159,7 @@
     if (em)
     {
         DMO_Filter_Destroy(This);
-	printf("IMediaObject ERROR: %p  %s (0x%lx : %ld)\n", em, em ? em : "", hr, hr);
+	fprintf(stderr, "IMediaObject ERROR: %p  %s (0x%lx : %ld)\n", em, em ? em : "", hr, hr);
 	This = 0;
     }
     return This;