X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fswig%2Fruby%2Fplay.rb;fp=mlt%2B%2B%2Fswig%2Fruby%2Fplay.rb;h=1ec995bc18163dbdb34bb80564b6c1aa68f94e53;hb=2085323abc65a3325b4e9f1a9733dcf126756862;hp=9577e4ee23d13e610f4f45e7c44c849c48f403a0;hpb=9d109a9d7b686b816aa70f1befc55801bffe261f;p=melted diff --git a/mlt++/swig/ruby/play.rb b/mlt++/swig/ruby/play.rb index 9577e4e..1ec995b 100755 --- a/mlt++/swig/ruby/play.rb +++ b/mlt++/swig/ruby/play.rb @@ -6,16 +6,19 @@ require 'mltpp' # Create the mlt system Mltpp::Factory::init +# Establish the mlt profile +profile = Mltpp::Profile.new + # Get and check the argument file = ARGV.shift raise "Usage: test.rb file" if file.nil? # Create the producer -producer = Mltpp::Factory::producer( file ) +producer = Mltpp::Factory::producer( profile, file ) raise "Unable to load #{file}" if !producer.is_valid # Create the consumer -consumer = Mltpp::Consumer.new( "sdl" ) +consumer = Mltpp::Consumer.new( profile, "sdl" ) raise "Unable to open sdl consumer" if !consumer.is_valid # Turn off the default rescaling