summaryrefslogtreecommitdiffstats
path: root/gst/law/mulaw.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/law/mulaw.c')
-rw-r--r--gst/law/mulaw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gst/law/mulaw.c b/gst/law/mulaw.c
index 4a288065..b26f3f51 100644
--- a/gst/law/mulaw.c
+++ b/gst/law/mulaw.c
@@ -35,16 +35,23 @@ plugin_init (GstPlugin * plugin)
mulaw_caps = mulaw_factory ();
linear_caps = linear_factory ();
+ gst_caps_ref (mulaw_caps);
+ gst_caps_ref (linear_caps);
mulawenc_src_template =
gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, mulaw_caps);
mulawenc_sink_template =
gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, linear_caps);
+ gst_caps_ref (mulaw_caps);
+ gst_caps_ref (linear_caps);
mulawdec_src_template =
gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, linear_caps);
mulawdec_sink_template =
gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS, mulaw_caps);
+ gst_caps_unref (mulaw_caps);
+ gst_caps_unref (linear_caps);
+
if (!gst_element_register (plugin, "mulawenc",
GST_RANK_NONE, GST_TYPE_MULAWENC) ||
!gst_element_register (plugin, "mulawdec",