&width, &height, &stride, flags);
}
+/* GstTypeFind */
+#undef GstTypeFindPeekFunction
+#define GstTypeFindPeekFunction GstCompatTypeFindPeekFunction
+#undef GstTypeFindSuggestFunction
+#define GstTypeFindSuggestFunction GstCompatTypeFindSuggestFunction
+
+typedef guint8 *(*GstCompatTypeFindPeekFunction)(gpointer, gint64, guint);
+typedef void (*GstCompatTypeFindSuggestFunction)(gpointer, guint, const GstCaps *);
+
#endif /* GST_COMPAT_H */
GstTypeFind type_find;
} CodecIdentifier;
-static guint8 *
+static const guint8 *
codec_identifier_peek(gpointer data, gint64 offset, guint size)
{
CodecIdentifier * const cip = data;
}
static void
-codec_identifier_suggest(gpointer data, guint probability, const GstCaps *caps)
+codec_identifier_suggest(gpointer data, guint probability, GstCaps *caps)
{
CodecIdentifier * const cip = data;
if (cip->probability < probability) {
cip->probability = probability;
- gst_caps_replace(&cip->caps, (GstCaps *)caps);
+ gst_caps_replace(&cip->caps, caps);
}
}
goto error;
tfp = &cip->type_find;
- tfp->peek = codec_identifier_peek;
- tfp->suggest = codec_identifier_suggest;
+ tfp->peek = (GstTypeFindPeekFunction)codec_identifier_peek;
+ tfp->suggest = (GstTypeFindSuggestFunction)codec_identifier_suggest;
tfp->data = cip;
return cip;