projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5d9da
)
aggregator: Flush sinkpads when stopping
author
Thibault Saunier
<tsaunier@gnome.org>
Thu, 10 Jul 2014 11:18:21 +0000
(13:18 +0200)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 2 Dec 2017 15:10:25 +0000
(15:10 +0000)
All values are meaningless in that case, so we should make sure that
we clean everything
libs/gst/base/gstaggregator.c
patch
|
blob
|
history
diff --git
a/libs/gst/base/gstaggregator.c
b/libs/gst/base/gstaggregator.c
index
c2d00ad
..
7eab806
100644
(file)
--- a/
libs/gst/base/gstaggregator.c
+++ b/
libs/gst/base/gstaggregator.c
@@
-691,10
+691,21
@@
eat:
}
static gboolean
+_flush_pad (GstAggregator * self, GstAggregatorPad * pad, gpointer unused_udata)
+{
+ _aggpad_flush (pad, self);
+
+ return TRUE;
+}
+
+static gboolean
_stop (GstAggregator * agg)
{
_reset_flow_values (agg);
+ gst_aggregator_iterate_sinkpads (agg,
+ (GstAggregatorPadForeachFunc) _flush_pad, NULL);
+
return TRUE;
}