[gstreamer-bugs] [Bug 618644] New: gst_pad_get_caps() Return pad template if parent element is in GST_STATE_NULL

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri May 14 08:29:07 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=618644
  GStreamer | gstreamer (core) | git

           Summary: gst_pad_get_caps() Return pad template if parent
                    element is in GST_STATE_NULL
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: bilboed at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


Right now gst_pad_get_caps() always calculates the full caps even if the
element to which it belongs is in NULL, which is before any actual dataflow or
negotiation needs to take place (which will then call again get_caps() through
this pad).

The following patch return the pad templates (if any) instead of calling the
getcapsfunc when the parent is in GST_STATE_NULL.

This speeds up creating pipelines (since we avoid a lot of useless caps
negotiation everytime we link elements) and passes make check on core.

-- 
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