GNOME Bugzilla – Bug 784551
basesrc: forward SINK_MESSAGE events downstream
Last modified: 2017-07-12 12:45:52 UTC
Created attachment 354924 [details] [review] basesrc: forward SINK_MESSAGE events downstream Currently GstBaseSrc ignores SINK_MESSAGE events when sending them with gst_element_send_event() from the application. This patch fixes that.
Review of attachment 354924 [details] [review]: ::: libs/gst/base/gstbasesrc.c @@ +1896,3 @@ break; case GST_EVENT_TAG: + case GST_EVENT_SINK_MESSAGE: Note that the application thread will block if downstream flow is also blocked, making it hard to use by applications. It's the reason why EOS are being queued and pushed on the streaming thread. Maybe long term we should add a generic queue for these ?
(In reply to Nicolas Dufresne (stormer) from comment #1) > Note that the application thread will block if downstream flow is also > blocked, making it hard to use by applications. It's the reason why EOS are > being queued and pushed on the streaming thread. Maybe long term we should > add a generic queue for these ? Hmm, I don't see any blocking operation there. It merely adds the event to a "pending_events" list and continues.
Just missed that part, ok then.
commit bd5b1d00e6268cecdc74396b40ebab2270f8db1e Author: George Kiagiadakis <george.kiagiadakis@collabora.com> Date: Mon Jun 26 11:46:39 2017 +0300 basesrc: forward SINK_MESSAGE events downstream https://bugzilla.gnome.org/show_bug.cgi?id=784551