Add a .gitignore file
[melted] / mlt++ / swig / java / Play.java
index 3bf0e47..35918db 100644 (file)
@@ -11,15 +11,18 @@ public class Play {
                // Start the mlt system
                Factory.init( null );
 
+               // Set the output profile
+               Profile profile = new Profile( "" );
+
                // Create the producer
-               Producer p = new Producer( args[0], null );
+               Producer p = new Producer( profile, args[0], null );
 
                if ( p.is_valid() ) {
          
                        p.set ("eof", "loop");
          
                        // Create the consumer
-                       Consumer c = new Consumer("sdl", null);
+                       Consumer c = new Consumer( profile, "sdl", null);
 
                        // Turn off the default rescaling
                        c.set("rescale", "none");
@@ -32,7 +35,7 @@ public class Play {
 
                        // Wait until the user stops the consumer
                        Object o = new Object();
-                       while (c.is_stopped() == 0) {
+                       while ( !c.is_stopped() ) {
                                synchronized (o) {
                                        try {
                                                o.wait(1000);