# 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( )
generator.start
# Wait until we're done
-while generator.is_stopped == 0
+while !generator.is_stopped
sleep 1
end