summaryrefslogtreecommitdiff
path: root/sys/oss4/oss4-sink.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/oss4/oss4-sink.c')
-rw-r--r--sys/oss4/oss4-sink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/oss4/oss4-sink.c b/sys/oss4/oss4-sink.c
index 1d2220b..54e95b9 100644
--- a/sys/oss4/oss4-sink.c
+++ b/sys/oss4/oss4-sink.c
@@ -134,6 +134,7 @@ gst_oss4_sink_base_init (gpointer g_class)
templ = gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
gst_oss4_audio_get_template_caps ());
gst_element_class_add_pad_template (element_class, templ);
+ gst_object_unref (templ);
}
static void
@@ -391,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 {