* my_peek (gpointer data, gint64 offset, guint size)
* {
* MyTypeFind *find = (MyTypeFind *) data;
- * if (offset >= 0 && offset + size <= find->size) {
+ * if (offset >= 0 && offset + size <= find->size) {
* return find->data + offset;
* }
* return NULL;
* my_suggest (gpointer data, guint probability, GstCaps *caps)
* {
* MyTypeFind *find = (MyTypeFind *) data;
- * if (probability > find->probability) {
+ * if (probability > find->probability) {
* find->probability = probability;
- * gst_caps_replace (&find->caps, caps);
+ * gst_caps_replace (&find->caps, caps);
* }
* }
* static GstCaps *
* {
* GList *walk, *type_list;
* MyTypeFind find = {data, size, 0, NULL};
- * GstTypeFind gst_find = {my_peek, my_suggest, &find, };
+ * GstTypeFind gst_find = {my_peek, my_suggest, &find, };
* walk = type_list = gst_type_find_factory_get_list ();
* while (walk) {
* GstTypeFindFactory *factory = GST_TYPE_FIND_FACTORY (walk->data);
* walk = g_list_next (walk)
- * gst_type_find_factory_call_function (factory, &gst_find);
+ * gst_type_find_factory_call_function (factory, &gst_find);
* }
* g_list_free (type_list);
* return find.caps;