Cleanup streaming movie when done
Cleanup streaming movie when done


Index: pyglet/media/quicktime.py
===================================================================
--- pyglet/media/quicktime.py	(revision 774)
+++ pyglet/media/quicktime.py	(working copy)
@@ -208,8 +208,13 @@
             self.static_buffers = (al.ALuint * len(buffers))(*buffers)

     def __del__(self):
-        if not self.streaming:
+        if self.streaming:
             try:
+                quicktime.DisposeMovie(self.movie)
+            except NameError:
+                pass
+        else:
+            try:
                 openal.buffer_pool.replace(self.static_buffers)
             except NameError:
                 pass

--HG--
extra : convert_revision : svn%3A14d46d22-621c-0410-bb3d-6f67920f7d95/trunk%40775

infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore,infowantstobeseen/pyglet-darwincore