[gstreamer-bugs] [Bug 562170] GstBus watch doesn't work with non-default main context

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sat Dec 27 09:47:32 PST 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=562170

  GStreamer | gstreamer (core) | Ver: 0.10.21

Tim-Philipp Müller changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #123365|none                        |committed
               Flag|                            |
             Status|ASSIGNED                    |NEEDINFO
            Summary|GstBus watch does not       |GstBus watch doesn't work
                   |receive EOS or SEGMENT_DONE |with non-default main
                   |events                      |context




------- Comment #7 from Tim-Philipp Müller  2008-12-27 17:47 UTC -------
I've committed this now, along with a unit test:

 2008-12-27  Tim-Philipp Müller  <tim.muller at collabora co uk>

        * gst/gstbus.c: (gst_bus_dispose), (gst_bus_get_property),
          (gst_bus_wakeup_main_context), (gst_bus_set_main_context),
          (gst_bus_post), (gst_bus_source_prepare), (gst_bus_source_finalize),
          (gst_bus_create_watch):
          Make GstBusSource work with non-default main contexts (#562170).

        * tests/check/gst/gstbus.c: (message_func_eos), (message_func_app),
          (test_watch), (test_watch_with_custom_context), (gst_bus_suite):
          Add test case for GstBusSource with a non-default main context.


> I patched this on 10.21 which took hand-correction, and it doesn't work. I
> can try to get a CVS build set up to test, if that would make any difference.

Are you sure your application was actually using the patched libgstreamer?
Maybe you could attach a GST_DEBUG=GST_BUS:5 log?


> But I think the natural way to use GstBus is with a mainloop, right?

Using a main loop only makes sense if there are multiple event sources being
watched (e.g. GStreamer bus, Gtk+/X events etc.). If you're only ever waiting
for GstBus messages anyway, you may just as well use gst_bus_*pop* directly.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=562170.




More information about the gstreamer-bugs mailing list