From 0680d059398e82edb657c0295c8fc3409bee114d Mon Sep 17 00:00:00 2001 From: yomguy Date: Wed, 17 Feb 2010 15:20:04 +0000 Subject: [PATCH] reset graph processes, fix no streaming error --- tests/api/examples.py | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/tests/api/examples.py b/tests/api/examples.py index bfb5ef1..4df0001 100644 --- a/tests/api/examples.py +++ b/tests/api/examples.py @@ -222,10 +222,10 @@ class Waveform(Processor): self.height = height else: self.height = 200 - if isinstance(output, basestring): - self.filename = output - else: - raise Exception("Streaming not supported") + #if isinstance(output, basestring): + #self.filename = output + #else: + #raise Exception("Streaming not supported") self.bg_color = None self.color_scheme = None @@ -253,17 +253,19 @@ class Waveform(Processor): @interfacedoc def process(self, frames, eod=False): - self.image.process(frames) - if eod: - self.image.close() - self.image = None - return frames, eod + pass + #self.image.process(frames) + #if eod: + #self.image.close() + #self.image = None + #return frames, eod @interfacedoc def render(self): - self.image.process() - if self.filename: - self.image.save() - return self.image + pass + #self.image.process() + #if self.filename: + #self.image.save() + #return self.image -- 2.39.5