summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
m---------common0
-rw-r--r--gst/audioresample/gstaudioresample.c6
2 files changed, 3 insertions, 3 deletions
diff --git a/common b/common
-Subproject ef97fb3278d98a1fdb32e5c6b2a7467116ffc16
+Subproject e9ea99f6e89d7e1af3a0a859bfeb0ed6ecf2e3a
diff --git a/gst/audioresample/gstaudioresample.c b/gst/audioresample/gstaudioresample.c
index 687a0637..c878d02e 100644
--- a/gst/audioresample/gstaudioresample.c
+++ b/gst/audioresample/gstaudioresample.c
@@ -223,6 +223,9 @@ audioresample_stop (GstBaseTransform * base)
audioresample->resample = NULL;
}
+ gst_caps_replace (&audioresample->sinkcaps, NULL);
+ gst_caps_replace (&audioresample->srccaps, NULL);
+
return TRUE;
}
@@ -438,10 +441,7 @@ audioresample_set_caps (GstBaseTransform * base, GstCaps * incaps,
/* save caps so we can short-circuit in the size_transform if the caps
* are the same */
- /* FIXME: clean them up in state change ? */
- gst_caps_ref (incaps);
gst_caps_replace (&audioresample->sinkcaps, incaps);
- gst_caps_ref (outcaps);
gst_caps_replace (&audioresample->srccaps, outcaps);
return TRUE;