summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-10-02 10:13:28 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-10-14 09:38:33 +0200
commit3ce1a41144beeee9e8e1840fea8b1d94b388614f (patch)
treed47f8c2e7be8b57609afcbeb9c000361ca2efde9
parentf285526de6119973c97fed4d4f26b17d69d3f8d6 (diff)
downloadgstreamer-3ce1a41144beeee9e8e1840fea8b1d94b388614f.tar.gz
capsfilter: Push pending events before a buffer also if upstream never configured caps but we have srcpad caps already
Otherwise we never send pending events downstream that arrive after we configured caps on the srcpad. https://bugzilla.gnome.org/show_bug.cgi?id=737735
-rw-r--r--plugins/elements/gstcapsfilter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/elements/gstcapsfilter.c b/plugins/elements/gstcapsfilter.c
index 86c0df0e1f..a499453086 100644
--- a/plugins/elements/gstcapsfilter.c
+++ b/plugins/elements/gstcapsfilter.c
@@ -340,6 +340,9 @@ gst_capsfilter_prepare_buf (GstBaseTransform * trans, GstBuffer * input,
} else {
ret = GST_FLOW_NOT_NEGOTIATED;
}
+ } else {
+ gst_capsfilter_push_pending_events (filter, pending_events);
+ pending_events = NULL;
}
g_list_free_full (pending_events, (GDestroyNotify) gst_event_unref);