[Bug 789843] API: GstPromise - object with promise/future-like semantics

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Nov 14 19:30:43 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=789843

--- Comment #7 from Olivier CrĂȘte <olivier.crete at ocrete.ca> ---
(In reply to Matthew Waters (ystreet00) from comment #6)
> Originally I had the webrtcbin implementation so that the callee had to
> create the promise and thus the setting of the change callback could race
> with the reply.  That's since been changed so that the caller creates the
> promise and sets the change callback before passing for a reply.
> 
> I don't really want to support the first case as setting the change callback
> after a reply/interrupt/expire doesn't seem like a valid use case?
> 
> Stealing the func/data is a good idea though.

In that case you may just want to let the user set the callback on the
gst_promise_new() and avoid the whole issue?

-- 
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