]> git.sesse.net Git - mlt/commitdiff
Have melt detect 'pipe:' and disable reading stdin on terminal.
authorDan Dennedy <dan@dennedy.org>
Sun, 5 Jun 2011 21:41:38 +0000 (14:41 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 5 Jun 2011 21:41:38 +0000 (14:41 -0700)
src/melt/melt.c

index 602d36f8065cb2b380202e64c7e0e665b5ee2de8..19a3698e09a42ec138009dd2a343863df5a56c2a 100644 (file)
@@ -625,7 +625,8 @@ int main( int argc, char **argv )
                        if ( pname && pname[0] != '-' )
                                profile = mlt_profile_init( pname );
                }
-               else if ( !strcmp( argv[ i ], "-progress" ) )
+               else if ( !strcmp( argv[ i ], "-progress" ) ||
+                       !strcmp( argv[i], "pipe:" ) || strstr( argv[i], ":pipe:" ) )
                {
                        is_progress = 1;
                }