swig/{java,python,tcl}/build: fix linking error __stack_chk_fail_local.
[melted] / mlt++ / swig / python / play.py
index 70be84d..72116ae 100755 (executable)
@@ -6,14 +6,17 @@ import time
 import sys
 
 # Start the mlt system
-mltpp.Factory.init( )
+mltpp.Factory().init( )
+
+# Establish a profile
+profile = mltpp.Profile( )
 
 # Create the producer
-p = mltpp.Producer( sys.argv[1] )
+p = mltpp.Producer( profile, sys.argv[1] )
 
 if p:
        # Create the consumer
-       c = mltpp.Consumer( "sdl" )
+       c = mltpp.Consumer( profile, "sdl" )
 
        # Turn off the default rescaling
        c.set( "rescale", "none" )