From fb3c5d7c47104fcd9b8f3e18b7de08cbdf522876 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 29 Dec 2003 15:16:03 +0000 Subject: Fix warning about discarding const qualifier Original commit message from CVS: Fix warning about discarding const qualifier --- ext/sndfile/gstsf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/sndfile/gstsf.c') diff --git a/ext/sndfile/gstsf.c b/ext/sndfile/gstsf.c index b9c630c9..6b185b8b 100644 --- a/ext/sndfile/gstsf.c +++ b/ext/sndfile/gstsf.c @@ -695,7 +695,7 @@ gst_sf_loop (GstElement *element) continue; if (!channel->caps_set) { - GstCaps *caps = GST_PAD_CAPS (GST_SF_CHANNEL (l)->pad); + GstCaps *caps = gst_caps_copy (GST_PAD_CAPS (GST_SF_CHANNEL (l)->pad)); if (!caps) caps = gst_caps_copy (GST_PAD_TEMPLATE_CAPS (GST_PAD_PAD_TEMPLATE (GST_SF_CHANNEL (l)->pad))); -- cgit v1.2.1