Constness changes
[melted] / src / modules / avformat / factory.c
index 992b9f2..54adf93 100644 (file)
@@ -90,7 +90,7 @@ static void avformat_init( )
                pthread_mutex_init( &avformat_mutex, NULL );
                av_register_all( );
                mlt_factory_register_for_clean_up( NULL, avformat_destroy );
-               av_log_set_level( -1 );
+               av_log_set_level( mlt_log_get_level() );
        }
 }
 
@@ -124,7 +124,7 @@ static void *create_service( mlt_profile profile, mlt_service_type type, const c
 static mlt_properties avformat_metadata( mlt_service_type type, const char *id, void *data )
 {
        char file[ PATH_MAX ];
-       char *service_type = NULL;
+       const char *service_type = NULL;
        switch ( type )
        {
                case consumer_type: