projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d938568
)
aggregator: Flush sinkpads when stopping
author
Thibault Saunier
<tsaunier@gnome.org>
Thu, 10 Jul 2014 11:18:21 +0000
(13:18 +0200)
committer
Thibault Saunier
<tsaunier@gnome.org>
Wed, 16 Jul 2014 15:52:35 +0000
(17:52 +0200)
All values are meaningless in that case, so we should make sure that
we clean everything
gst-libs/gst/base/gstaggregator.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/base/gstaggregator.c
b/gst-libs/gst/base/gstaggregator.c
index
c2d00ad
..
7eab806
100644
(file)
--- a/
gst-libs/gst/base/gstaggregator.c
+++ b/
gst-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;
}