[clutter] [pyclutter] How to unref/clean the VideoTexture ?

From: Florent <fthiery_at_gmail.com>
Date: Tue, 26 Feb 2008 22:00:08 +0100

Hi

I am heavily using the VideoTexture object (opening dozens of files)
for displaying previews. When you open a lot of concurrent files,
system memory can go crazy (had a glib : cannot allocate 1.6 GB
lately).

I set the VideoTexture to playing state, seek to a random position,
take a snapshot (using get_pixbuf) which i set on an overlaying actor.
What i want after setting the preview snapshot is cleanly free the
VideoTexture. How can i achieve a clean reinitialization ?

I also discovered you cannot do a get_pixbuf() on a VideoTexture if
you don't wait for a few millisecs (i used a gobject timeout around
100 for this purpose). Is there a proper signal to connect to, letting
me know that the VideoTexture is "ready" ?

Thanks

Florent

-- 
To unsubscribe send a mail to clutter+unsubscribe_at_o-hand.com
Received on Tue Feb 26 2008 - 16:00:08 EST

This archive was generated by hypermail 2.2.0 : Tue Feb 26 2008 - 16:00:24 EST