summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Schmidt <thaytan@mad.scientist.com>2003-12-29 15:16:03 +0000
committerJan Schmidt <thaytan@mad.scientist.com>2003-12-29 15:16:03 +0000
commitfb3c5d7c47104fcd9b8f3e18b7de08cbdf522876 (patch)
tree91c7efeaad964dc2060e28fd49fd74968f63ada4
parent2006f3a335144c3928679fc5776270c0d6ccac37 (diff)
downloadgst-plugins-bad-fb3c5d7c47104fcd9b8f3e18b7de08cbdf522876.tar.gz
gst-plugins-bad-fb3c5d7c47104fcd9b8f3e18b7de08cbdf522876.tar.bz2
gst-plugins-bad-fb3c5d7c47104fcd9b8f3e18b7de08cbdf522876.zip
Fix warning about discarding const qualifier
Original commit message from CVS: Fix warning about discarding const qualifier
-rw-r--r--ChangeLog5
-rw-r--r--ext/sndfile/gstsf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 64aea2ed..8c737f40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-30 Jan Schmidt <thaytan@mad.scientist.com>
+
+ * ext/sndfile/gstsf.c: (gst_sf_loop):
+ Fix warning about discarding const qualifier
+
2003-12-27 Jeremy Simon <jesimon@libertysurf.fr>
* gst/cutter/gstcutter.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)));