* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sched.h>
+#include <libgen.h>
#include <framework/mlt.h>
}
}
- if ( silent )
+ if ( silent || progress )
nanosleep( &tm, NULL );
}
basename( argv[0] ) );
}
- // Close the consumer
- if ( consumer != NULL )
- mlt_consumer_close( consumer );
-
// Close the producer
if ( melt != NULL )
mlt_producer_close( melt );
+ // Close the consumer
+ if ( consumer != NULL )
+ mlt_consumer_close( consumer );
+
// Close the factory
mlt_profile_close( profile );