From 8129814f8be6995f5736b3e0b87666ac4a10ff6f Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Sun, 20 Nov 2011 21:47:28 +0000 Subject: setting pixbuf to None every time, just to be sure --- (limited to 'plugins') diff --git a/plugins/camera_sensor/tacamera.py b/plugins/camera_sensor/tacamera.py index 77752ac..42b0729 100644 --- a/plugins/camera_sensor/tacamera.py +++ b/plugins/camera_sensor/tacamera.py @@ -34,7 +34,6 @@ class Camera(): def __init__(self): ''' Prepare camera pipeline to pixbuf and signal watch ''' - self.pixbuf = None self.pipe = gst.parse_launch('!'.join(GST_PIPE)) self.bus = self.pipe.get_bus() self.bus.add_signal_watch() @@ -50,6 +49,7 @@ class Camera(): def start_camera_input(self): ''' Start grabbing ''' + self.pixbuf = None self.image_ready = False self.pipe.set_state(gst.STATE_PLAYING) while not self.image_ready: -- cgit v0.9.1