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.
This commit is contained in:
Colin Walters 2003-04-15 03:19:08 +00:00
parent d41620bc75
commit 8aa9339f50

View file

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