]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_log.c
Add mlt_animation and mlt_property_interpolate().
[mlt] / src / framework / mlt_log.c
index 6fb6233ed19ee6cf973889dd4b2a7b2ce6715cff..9437c034dcc876139ca923d4d1d5c9a24d3f7d3c 100644 (file)
@@ -26,7 +26,7 @@
 
 #include <string.h>
 
-static int log_level = MLT_LOG_PANIC;
+static int log_level = MLT_LOG_WARNING;
 
 void default_callback( void* ptr, int level, const char* fmt, va_list vl )
 {
@@ -38,11 +38,17 @@ void default_callback( void* ptr, int level, const char* fmt, va_list vl )
        if ( print_prefix && properties )
        {
                char *mlt_type = mlt_properties_get( properties, "mlt_type" );
+               char *mlt_service = mlt_properties_get( properties, "mlt_service" );
                char *resource = mlt_properties_get( properties, "resource" );
        
-               if ( resource && *resource && resource[0] == '<' && resource[ strlen(resource) - 1 ] == '>' )
-                       mlt_type = resource;
-               fprintf( stderr, "[%s @ %p]", mlt_type, ptr );
+               if ( !( resource && *resource && resource[0] == '<' && resource[ strlen(resource) - 1 ] == '>' ) )
+                       mlt_type = mlt_properties_get( properties, "mlt_type" );
+               if ( mlt_service )
+                       fprintf( stderr, "[%s %s] ", mlt_type, mlt_service );
+               else
+                       fprintf( stderr, "[%s %p] ", mlt_type, ptr );
+               if ( resource )
+                       fprintf( stderr, "%s\n    ", resource );
        }
        print_prefix = strstr( fmt, "\n" ) != NULL;
        vfprintf( stderr, fmt, vl );