]> git.sesse.net Git - mlt/commitdiff
Fix melt -silent with pipe input.
authorDan Dennedy <dan@dennedy.org>
Sat, 11 Jun 2011 22:39:40 +0000 (15:39 -0700)
committerDan Dennedy <dan@dennedy.org>
Sat, 11 Jun 2011 22:39:40 +0000 (15:39 -0700)
src/melt/melt.c

index b3e74c589755dc0c277fb0d19587cb13b851ba44..0d7e91854f967970a211eb47cd49b6d40940feb7 100644 (file)
@@ -626,7 +626,7 @@ int main( int argc, char **argv )
                        if ( pname && pname[0] != '-' )
                                profile = mlt_profile_init( pname );
                }
-               else if ( !strcmp( argv[ i ], "-progress" ) || !isatty( STDIN_FILENO ) )
+               else if ( !strcmp( argv[ i ], "-progress" ) )
                {
                        is_progress = 1;
                }
@@ -706,6 +706,8 @@ query_all:
                        mlt_log_set_level( MLT_LOG_DEBUG );
                }
        }
+       if ( !is_silent && !isatty( STDIN_FILENO ) )
+               is_progress = 1;
 
        // Create profile if not set explicitly
        if ( getenv( "MLT_PROFILE" ) )