[gstreamer-bugs] [Bug 342155] New: to allow sink elements to ask for more data during preroll

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed May 17 10:53:13 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=342155
 GStreamer | gstreamer (core) | Ver: HEAD CVS

           Summary: to allow sink elements to ask for more data during
                    preroll
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: edgard.lima at indt.org.br
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: wim at fluendo.com
     GNOME version: Unspecified
   GNOME milestone: Unspecified


use case:

My 'sink' element talks to a external resource. This resource takes a long time
to initialize. This is undesirable to have initialization after pipeline is
PLAYING.   In order to init the resource, some amount of data is required (ex:
10000 bytes),  because the sink element has to analyze this data and choose the
right maner to init the resource, based on the info collected. So
initialization should happen at preroll, and preroll should allow the element
to ask for more data before finish the prerolling phase.


proposed solution:

if preroll function returns GST_FLOW_WRONG_STATE (or a newer
GST_FLOW_NEED_MORE_DATA), GstBaseSink doens't commit the state, but waits for
more data or EOS.
It is up to the element to hold/discard the received data from previuos call to
preroll function.


-- 
Configure bugmail: http://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