Fix warning about discarding const qualifier
authorJan Schmidt <thaytan@mad.scientist.com>
Mon, 29 Dec 2003 15:16:03 +0000 (15:16 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Mon, 29 Dec 2003 15:16:03 +0000 (15:16 +0000)
Original commit message from CVS:
Fix warning about discarding const qualifier

ChangeLog
ext/sndfile/gstsf.c

index 64aea2e..8c737f4 100644 (file)
--- 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:
index b9c630c..6b185b8 100644 (file)
@@ -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)));