tizen 2.0 init
[framework/multimedia/gst-plugins-good0.10.git] / sys / oss4 / oss4-sink.c
index 1d2220b..54e95b9 100644 (file)
@@ -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 {