mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
typefind: Send caps again after activation
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
This commit is contained in:
parent
2beb2c67aa
commit
7cef56076e
1 changed files with 8 additions and 0 deletions
|
@ -883,6 +883,14 @@ gst_type_find_element_activate_src_mode (GstPad * pad, GstObject * parent,
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case GST_PAD_MODE_PULL:
|
case GST_PAD_MODE_PULL:
|
||||||
res = gst_pad_activate_mode (typefind->sink, mode, active);
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
res = TRUE;
|
res = TRUE;
|
||||||
|
|
Loading…
Reference in a new issue