[gstreamer-bugs] [Bug 333042] New: New API: gst_type_find_helper_get_range

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Mar 1 12:38:02 PST 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=333042
 GStreamer | gstreamer (core) | Ver: HEAD CVS

           Summary: New API: gst_type_find_helper_get_range
           Product: GStreamer
           Version: HEAD CVS
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: t.i.m at zen.co.uk
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


I'd like to add another typefind helper:

typedef GstFlowReturn (*GstTypeFindHelperGetRangeFunction) (GstObject  *obj,
                                                            guint64     offset,
                                                            guint       length,
                                                            GstBuffer
**buffer);

GstCaps * gst_type_find_helper_get_range (GstObject  * obj,
                    GstTypeFindHelperGetRangeFunction  func,
                    guint64                            size,
                    GstTypeFindProbability            *prob);


This function does basically the same as gst_type_find_helper(), only that it
is not limited to a source pad, but calls a generic getrange function that has
almost the same signature as GstPadGetRangeFunction, so that
gst_type_find_helper() can be implemented as a very thin wrapper around the new
function.


The ultimate purpose is to make id3demux and apedemux do pull-based typefinding
if upstream supports that. This is required to identify and extract nested ID3
and APE tags properly (both of which can be at the end or the beginning of a
file).


A nice side-effect would be that the typefind element could also be made to use
this function for pull-based typefinding; it would then be able to obtain the
probability of the caps returned and thus be able to honour its
minimum-probability property.


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