[gst-devel] gst_init and threads
Stefan Kost
ensonic at hora-obscura.de
Tue Jul 29 18:23:55 CEST 2008
hi,
Rémi BUISSON schrieb:
> Hi everyone,
>
> Is possible to have an gstreamer running in a thread (for a streaming
> server, for instance) ?
>
GStreamer already uses threads internaly for the pipeline. E.g. a video
decoding usualy uses one thread for "src ! demux" and one thread each
for "queue ! {a,v}decode ! sink"
Stefan
> For instance :
>
>
> ...
> pthread_create(&gst, NULL, streamerGStreamer, buff);
> ...
>
>
>
> void *streamerGStreamer(void *arg)
> {
> GMainLoop *loop;
> GstBus *bus;
> int argc = 2;
>
> gst_init(NULL, NULL);
>
> loop = g_main_loop_new(NULL, FALSE);
>
> ...
> }
>
> I ask it beacause I get this error:
> Gstreamer ERROR: could not pause
>
> Thanks in advance.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list