]> git.sesse.net Git - mlt/commitdiff
Log failure to open audio.
authorDan Dennedy <dan@dennedy.org>
Tue, 30 Jun 2009 21:59:05 +0000 (14:59 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 30 Jun 2009 21:59:05 +0000 (14:59 -0700)
Signed-off-by: Dan Dennedy <dan@dennedy.org>
src/modules/sdl/consumer_sdl.c

index b3bcfc0fc49fb498cdcdd544b034f50e693a60ee..38322370235bbf8aa1b26f4c4c5e8992bba79b7a 100644 (file)
@@ -23,6 +23,7 @@
 #include <framework/mlt_deque.h>
 #include <framework/mlt_factory.h>
 #include <framework/mlt_filter.h>
+#include <framework/mlt_log.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -383,7 +384,7 @@ static int consumer_play_audio( consumer_sdl this, mlt_frame frame, int init_aud
                request.userdata = (void *)this;
                if ( SDL_OpenAudio( &request, &got ) != 0 )
                {
-                       fprintf( stderr, "SDL failed to open audio: %s\n", SDL_GetError() );
+                       mlt_log_error( MLT_CONSUMER_SERVICE( this ), "SDL failed to open audio: %s\n", SDL_GetError() );
                        init_audio = 2;
                }
                else if ( got.size != 0 )