]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_log.c
Fix movit.convert.fence frame property when using tractor.
[mlt] / src / framework / mlt_log.c
index 31154e8462bf0a68aafd2be07835e532e3108cb2..9437c034dcc876139ca923d4d1d5c9a24d3f7d3c 100644 (file)
@@ -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 );