X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fswig%2Fruby%2Fthumbs.rb;h=a110cf86b9e881afd2d2c1a452ded3988db3545f;hb=6a622d4b2d78aa761d94b77c40c2b9b3fe2168ed;hp=22970dd38a6c13d78afd88815b269287d58a6ae3;hpb=1d262eab5f8850bf2603a405e09ad213341f4ab7;p=melted diff --git a/mlt++/swig/ruby/thumbs.rb b/mlt++/swig/ruby/thumbs.rb index 22970dd..a110cf8 100755 --- a/mlt++/swig/ruby/thumbs.rb +++ b/mlt++/swig/ruby/thumbs.rb @@ -15,7 +15,7 @@ raise "Usage: thumbs.rb file name [ size ]" if file.nil? || name.nil? # Create the producer producer = Mltpp::Factory::producer( file ) -raise "Unable to load #{file}" if producer.is_valid == 0 +raise "Unable to load #{file}" if !producer.is_valid # Construct the playlist playlist = Mltpp::PlaylistInstance.new( ) @@ -37,7 +37,7 @@ generator.connect( playlist ); generator.start # Wait until we're done -while generator.is_stopped == 0 +while !generator.is_stopped sleep 1 end