[gst-devel] how to make gstreamer run in separate thread
Alexey Chernov
4ernov at gmail.com
Fri Apr 16 21:13:07 CEST 2010
Yeah, Wes, I did the same except callbacks are global functions instead of
threads. And in my variant I found that callbacks run in main thread. Seems Qt
somewhere runs g_main_loop_run() inside of its event loop and all the message
dispatching goes to main thread.
Could you please detect which thread your callbacks run in? Maybe friend
functions is the solution...
В сообщении от Пятница 16 апреля 2010 19:31:15 вы написали:
> I was just working on this :-)
>
> I put my callback routines in friend functions of the class that I run in
> the separate thread. I am not sure which thread they run in, guess I can
> check that, but it works great. You do have to pass "this" as the data to
> the callbacks so you can manipulate the class members.
>
> Wes
More information about the gstreamer-devel
mailing list