Base.typeFindHelperForBuffer

Tries to find what type of data is contained in the given #GstBuffer, the assumption being that the buffer represents the beginning of the stream or file.

All available typefinders will be called on the data in order of rank. If a typefinding function returns a probability of %GST_TYPE_FIND_MAXIMUM, typefinding is stopped immediately and the found caps will be returned right away. Otherwise, all available typefind functions will the tried, and the caps with the highest probability will be returned, or %NULL if the content of the buffer could not be identified.

Free-function: gst_caps_unref

struct Base
static
typeFindHelperForBuffer

Parameters

obj ObjectGst

object doing the typefinding, or %NULL (used for logging)

buf Buffer

a #GstBuffer with data to typefind

prob GstTypeFindProbability

location to store the probability of the found caps, or %NULL

Return Value

Type: Caps

the #GstCaps corresponding to the data, or %NULL if no type could be found. The caller should free the caps returned with gst_caps_unref().

Meta