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 732572 - GstElement: Design an API to handle seek events in any state
GstElement: Design an API to handle seek events in any state
Status: RESOLVED DUPLICATE of bug 696952
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
2.x
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-01 18:21 UTC by Mathieu Duponchelle
Modified: 2014-07-01 18:23 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mathieu Duponchelle 2014-07-01 18:21:14 UTC
Right now, seeking elements doesn't do anything until source pads are exposed. It would be nice to have a generic way to seek elements even in the NULL state, or at least in the READY state.

My idea was:

gst_element_seek_simple:
    if not srcpads: store_segment, call vmethod set_initial_segment

gst_bin_set_initial_segment:
    STATE_LOCK(bin);
    iterate_elements and gst_element_seek (them);
    STATE_UNLOCK(bin);

then in the various demuxers, call gst_element_get_initial_segment and seek there immediately if possible.

Any thoughts?
Comment 1 Sebastian Dröge (slomo) 2014-07-01 18:23:33 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 696952 ***