+ /* Update caps field immediately so that caps queries and properties can be
+ * honored in all "have-type" signal handlers.
+ */
+ GST_OBJECT_LOCK (typefind);
+ if (typefind->caps)
+ gst_caps_unref (typefind->caps);
+ typefind->caps = gst_caps_ref (caps);
+ GST_OBJECT_UNLOCK (typefind);
+