[0.10] gst-plugins-good: oss4: fix caps leaks

Tim Müller tpm at kemper.freedesktop.org
Wed Jan 18 03:55:43 PST 2012


Module: gst-plugins-good
Branch: 0.10
Commit: c587cdea700761c8cd1e53d1666490edd05df1e6
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=c587cdea700761c8cd1e53d1666490edd05df1e6

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Fri Jan 13 17:43:49 2012 +0000

oss4: fix caps leaks

---

 sys/oss4/oss4-sink.c   |    2 +-
 sys/oss4/oss4-source.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/oss4/oss4-sink.c b/sys/oss4/oss4-sink.c
index de2d8a9..54e95b9 100644
--- a/sys/oss4/oss4-sink.c
+++ b/sys/oss4/oss4-sink.c
@@ -392,7 +392,7 @@ gst_oss4_sink_getcaps (GstBaseSink * bsink)
   oss = GST_OSS4_SINK (bsink);
 
   if (oss->fd == -1) {
-    caps = gst_caps_copy (gst_oss4_audio_get_template_caps ());
+    caps = gst_oss4_audio_get_template_caps ();
   } else if (oss->probed_caps) {
     caps = gst_caps_copy (oss->probed_caps);
   } else {
diff --git a/sys/oss4/oss4-source.c b/sys/oss4/oss4-source.c
index bb64593..eadb4c5 100644
--- a/sys/oss4/oss4-source.c
+++ b/sys/oss4/oss4-source.c
@@ -274,7 +274,7 @@ gst_oss4_source_getcaps (GstBaseSrc * bsrc)
   oss = GST_OSS4_SOURCE (bsrc);
 
   if (oss->fd == -1) {
-    caps = gst_caps_copy (gst_oss4_audio_get_template_caps ());
+    caps = gst_oss4_audio_get_template_caps ();
   } else if (oss->probed_caps) {
     caps = gst_caps_copy (oss->probed_caps);
   } else {



More information about the gstreamer-commits mailing list