basebarse: Add detect vfunc to allow subclasses to do format detection before anythin...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 20 Oct 2011 06:31:18 +0000 (08:31 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 20 Oct 2011 09:48:24 +0000 (11:48 +0200)
commit64493d960323cb1618c0d954191eb701a396f066
treed56282449f2098a6866885e6b245d3c0b131f837
parentad438461a603a81623d0f89b6cb94852e8879f05
basebarse: Add detect vfunc to allow subclasses to do format detection before anything else

API: GstBaseParseClass::detect()

This is called with the first buffers until the subclass has finished detection
and only afterwards the original buffers are handled as before. The vfunc allows
detection of the stream format without breaking the upstream framing.
libs/gst/base/gstbaseparse.c
libs/gst/base/gstbaseparse.h