Added resizevideo() interface to LiveVideoIn and rationalized size
adjustments (somewhat). Adapted Vsend to use it.
diff --git a/Demo/sgi/video/Vsend.py b/Demo/sgi/video/Vsend.py
index 543cd86..54554c2 100755
--- a/Demo/sgi/video/Vsend.py
+++ b/Demo/sgi/video/Vsend.py
@@ -118,10 +118,8 @@
w, h = gl.getsize()
x, y = gl.getorigin()
if (w, h) <> (width, height):
- lvi.close()
width, height = w, h
- lvi = LiveVideoIn.LiveVideoIn() \
- .init(pktmax, width, height)
+ lvi.resizevideo(width, height)
lvo.resizevideo(width, height)
rv = lvi.getnextpacket()