Avoids ending up in cases where typefind gets activated in pull-mode
and caps never get sent.
https://bugzilla.gnome.org/show_bug.cgi?id=667337
switch (mode) {
case GST_PAD_MODE_PULL:
res = gst_pad_activate_mode (typefind->sink, mode, active);
+ if (typefind->caps) {
+ GstCaps *caps;
+ GST_OBJECT_LOCK (typefind);
+ caps = gst_caps_ref (typefind->caps);
+ GST_OBJECT_UNLOCK (typefind);
+ gst_pad_push_event (typefind->src, gst_event_new_caps (caps));
+ gst_caps_unref (caps);
+ }
break;
default:
res = TRUE;