Hi everyone,
Is possible to have an gstreamer running in a thread (for a streaming server, for instance) ? 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
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 > [hidden email] > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel > ------------------------------------------------------------------------- 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |