[gst-devel] how to make gstreamer run in separate thread

wl2776 wl2776 at gmail.com
Fri Apr 16 15:47:51 CEST 2010



Bugzilla from 4ernov at gmail.com wrote:
> 
> Thank you. And could you please give some details on how to start main
> loop with g_main_loop_run to run in a separate thread? Maybe code
> sample of main_loop_thread(). Thank you in advance!
> 

No more details, my main_loop_thread() is the inliner, declared inside the
class declaration:

class gst_player{
public:
...
  void  main_loop_thread(void){
      g_main_loop_run(m_loop); 
      g_thread_exit(0); 
  };
...
};

I've accidentally deleted { in my previous post.

-- 
View this message in context: http://n4.nabble.com/how-to-make-gstreamer-run-in-separate-thread-tp1960435p2001719.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list