After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687975 - Add API to require some events before streaming
Add API to require some events before streaming
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Low enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-11-09 10:54 UTC by Olivier Crête
Modified: 2013-07-12 18:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
pad: Add required events so that the pad will reject buffers if these are missing (6.51 KB, patch)
2012-11-09 10:57 UTC, Olivier Crête
none Details | Review
Example usage for gst-plugins-base: Add some required events (1.91 KB, patch)
2012-11-09 11:00 UTC, Olivier Crête
none Details | Review

Description Olivier Crête 2012-11-09 10:54:47 UTC
This is an experiment to allow elements to declare that they require some sticky events before accepting buffers. The idea is to have the core (well GstPad) just reject the buffers if the events haven't been received. This makes writing elements easier as one can then assume that the CAPS or SEGMENT event has been received before a buffer.

Also, we should enforce event ordering in the pads so that the caps/segment order is guaranteed to always be the same, etc.
Comment 1 Olivier Crête 2012-11-09 10:57:48 UTC
Created attachment 228543 [details] [review]
pad: Add required events so that the pad will reject buffers if these are missing

Sink pads will return not-negotiated if it receives buffers without having
the required sticky events.
Comment 2 Olivier Crête 2012-11-09 11:00:01 UTC
Created attachment 228545 [details] [review]
Example usage for gst-plugins-base: Add some required events
Comment 3 Olivier Crête 2013-07-12 18:30:38 UTC
this is more or less done in a different way with the recent event ordering patches.