On Fri, Oct 28, 2011 at 3:41 PM, Lukas Ruetz <[email protected]> wrote: > Hello everyone, > > when I'm using clutter-gst to show a v4l2 src. I have the problem that > enqueued callbacks with clutter_threads_add_idle() are never processed. > Showing videos instead of a v4l-source works. The strange thing it, that > the v4l-video continues to show - it's not freezing.
the sink in clutter-gst knows when to queue replace the content of the ClutterTexture, when GStreamer buffers arrive to the pad. So no clutter_threads_add_idle() is needed to queue a redraw on the texture, the sink does it for you (when replacing the cogl-material on a texture, a redraw is queued). > I'm constructing my own gstreamer-pipeline and setting a texture as > sink. > > actor = g_object_new( CLUTTER_TYPE_TEXTURE, "disable-slicing", TRUE,NULL ); > pipeline = gst_pipeline_new( NULL ); > // constructing pipeline > sink = clutter_gst_video_sink_new( CLUTTER_TEXTURE(actor) ); That should work, for instance pinpoint has a very similar pipeline that seems to work: http://git.gnome.org/browse/pinpoint/tree/pp-clutter.c#n949 -- Damien _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
