Hello,
I've got some problems implementing a video player using clutter-gtk
library.
I want to render video pictures in a ClutterTexture which is update by
a function form an other thread. So i got the main thread for the
interface and i create an other one for the audio/video decompression.
This last one sync the audio/video and update the audio / video output.
I didn't succeed and try different things playing with the exemples of
clutter or clutter-gtk.
Last thing i do is to modify the clutter/test/test-threads.c
I add a ClutterActor * texture to the TestThreadData structure
create it and setting it with an "image0.jpg" in the main foo.
This part is ok.
I've also modify the test_thread_func to re-set the texture with an
other "imageN.jpg" with the function clutter_texture_set_from_file
between calls of clutter_threads_enter() and
clutter_threads_leave().
This just before the call to do_something_very_slow ();
The result I obtained is always the same, executing my video player or
the modified test-thread.c : it's a segfault in
_cogl_texture_size_supported(...) at cogl-texture.c:561
when it call the glTexImage2D.
So is it possible to update a clutter texture in an other thread ? I
have tried changing the color of a clutter rectangle from an other
thread and this work but i didn't succeed with the clutter texture....
I can post the modify test-thread.c if you want to check it.
Any Idea is greatly welcome.
Thanks,
Fred
--
To unsubscribe send a mail to [EMAIL PROTECTED]