[Bug 766898] player: Add a message queue API in addition to the signals
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Aug 27 16:34:23 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=766898
--- Comment #18 from rland <rlandjon at gmail.com> ---
> and all sides need to have a strong reference to the bus for this to work.
>
Perhaps this is the problem. If I remember correctly, the current
implementation simply returns the self–>api_bus variable directly. Instead, we
should return a strong reference and increase the ref count. But I am not sure
if this is still reliable. Consider an imaginary scenario, we start a gstplayer
instance in a service process, in order to process asynchronous messages and
non–block main thread, we may choose to create a separate thread,and loop call
gst_bus_timed_pop() to handle msg, that thread may be more than api_bus or even
gstplayer instance have a longer lifecycle,depending on the exit condition of
the thread.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list