typeFindHelperForDataWithCaps

Tries to find if type of media contained in the given data, matches the caps specified, assumption being that the data represents the beginning of the stream or file.

Only the typefinder matching the given caps will be called, if found. The caps with the highest probability will be returned, or null if the content of the data could not be identified.

Free-function: gst_caps_unref

Parameters

obj gst.object.ObjectGst

object doing the typefinding, or null (used for logging)

data ubyte[]

a pointer with data to typefind

caps gst.caps.Caps

caps of the media

prob gst.types.TypeFindProbability

location to store the probability of the found caps, or null

Return Value

Type: gst.caps.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().