Hi Damien,
Am 2011-10-28 17:26, schrieb Lespiau, Damien:
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 sorry - I was not clear enough. I'm not using clutter_threads_add_idle()
for any video-related stuff - it's just for the application-logic done
in another thread. I use the callbacks when I finally have to use the
clutter-API. But when I show a v4l-source this callbacks are never made
(or suddenly appear after some minutes).
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
Look's like what I'm doing. I'm afraid this could be some driver/hardware
issue. I'll try another capture-card next week and report back here.
thanks,
Lukas
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list