Fix warning about discarding const qualifier

Original commit message from CVS:
Fix warning about discarding const qualifier
This commit is contained in:
Jan Schmidt 2003-12-29 15:16:03 +00:00
parent 2006f3a335
commit fb3c5d7c47
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View 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)));