From 8aa9339f50524ecac9e6545275baefaea6f500f2 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 15 Apr 2003 03:19:08 +0000 Subject: [PATCH] Initialize various variables so gcc won't complain. Original commit message from CVS: Initialize various variables so gcc won't complain. Use GST_BUFFER_FLAG_IS_SET instead of unknown function gst_buffer_is_readonly. --- gst/audioconvert/gstaudioconvert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index 30df034..9fe72dc 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -322,7 +322,7 @@ static GstPadLinkReturn gst_audio_convert_link (GstPad *pad, GstCaps *caps) { GstAudioConvert *this; - gint nr; + gint nr = 0; gint rate, endianness, depth, width, channels; gboolean sign; @@ -505,7 +505,7 @@ static GstBuffer* gst_audio_convert_get_buffer (GstBuffer *buf, guint size) { GstBuffer *ret; - if (buf->maxsize >= size && !gst_buffer_is_readonly (buf)) { + if (buf->maxsize >= size && !(GST_BUFFER_FLAG_IS_SET (buf, GST_BUFFER_READONLY))) { gst_buffer_ref (buf); buf->size = size; return buf; @@ -537,7 +537,7 @@ gst_audio_convert_buffer_to_default_format (GstAudioConvert *this, GstBuffer *bu { GstBuffer *ret; gint i, count; - gint64 cur; + gint64 cur = 0; gint32 write; guint8 *src, *dest; -- 2.7.4