From e728ac80d1a790cc1ecbb7034deb56914911b068 Mon Sep 17 00:00:00 2001 From: Jeremy Simon Date: Sat, 27 Dec 2003 19:37:17 +0000 Subject: [PATCH] Fix warnings Original commit message from CVS: Fix warnings --- gst-libs/gst/audio/audio.c | 8 ++++---- gst-libs/gst/video/video.c | 4 ++-- gst/videoscale/gstvideoscale.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gst-libs/gst/audio/audio.c b/gst-libs/gst/audio/audio.c index bec298e..e1d5922 100644 --- a/gst-libs/gst/audio/audio.c +++ b/gst-libs/gst/audio/audio.c @@ -35,7 +35,7 @@ gst_audio_frame_byte_size (GstPad* pad) int width = 0; int channels = 0; - GstCaps *caps; + const GstCaps *caps = NULL; GstStructure *structure; /* get caps of pad */ @@ -82,7 +82,7 @@ gst_audio_frame_rate (GstPad *pad) * returns 0 if failed, rate if success */ { - GstCaps *caps = NULL; + const GstCaps *caps = NULL; gint rate; GstStructure *structure; @@ -117,7 +117,7 @@ gst_audio_length (GstPad* pad, GstBuffer* buf) double length; - GstCaps *caps = NULL; + const GstCaps *caps = NULL; GstStructure *structure; g_assert (GST_IS_BUFFER (buf)); @@ -156,7 +156,7 @@ gst_audio_highest_sample_value (GstPad* pad) { gboolean is_signed = FALSE; gint width = 0; - GstCaps *caps = NULL; + const GstCaps *caps = NULL; GstStructure *structure; caps = GST_PAD_CAPS (pad); diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c index 6d804a4..114b4ba 100644 --- a/gst-libs/gst/video/video.c +++ b/gst-libs/gst/video/video.c @@ -30,7 +30,7 @@ gdouble gst_video_frame_rate (GstPad *pad) { gdouble fps = 0.; - GstCaps *caps; + const GstCaps *caps = NULL; GstStructure *structure; /* get pad caps */ @@ -62,7 +62,7 @@ gst_video_get_size (GstPad *pad, gint *width, gint *height) { - GstCaps *caps; + const GstCaps *caps = NULL; GstStructure *structure; gboolean ret; diff --git a/gst/videoscale/gstvideoscale.c b/gst/videoscale/gstvideoscale.c index a29149a..0dbb3f7 100644 --- a/gst/videoscale/gstvideoscale.c +++ b/gst/videoscale/gstvideoscale.c @@ -208,7 +208,7 @@ gst_videoscale_link (GstPad *pad, const GstCaps *caps) { GstVideoscale *videoscale; GstPadLinkReturn ret; - GstCaps *othercaps; + const GstCaps *othercaps = NULL; GstPad *otherpad; GstStructure *structure; -- 2.7.4