[gst-embedded] gst_bus_add_watch without _main_loop_run (loop)

宋江山 jiangshan00000 at gmail.com
Mon Apr 6 03:35:27 PDT 2009


I would like to know that can I get the "end of stream" event (or a
signal?) without using the mainloop?
I used:
 gst_bus_add_watch (bus, my_bus_callback, NULL);
 to add a watch to catch the "end of stream" signal. But it seems
my_bus_callback not been called at all.
Maybe because I did not use
  g_main_loop_run (loop);
  because I have something else to do with my program.

What should  I do?
Should I create a thread and run  g_main_loop_run (loop)  or
this loop is not needed ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-embedded/attachments/20090406/1efff13a/attachment.htm>


More information about the Gstreamer-embedded mailing list