[Bug 732572] New: GstElement: Design an API to handle seek events in any state

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jul 1 11:21:20 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=732572
  GStreamer | gstreamer (core) | 2.x

           Summary: GstElement: Design an API to handle seek events in any
                    state
    Classification: Platform
           Product: GStreamer
           Version: 2.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: mathieu.duponchelle at epitech.eu
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


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?

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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