clean up some warnings
authorDavid Schleef <ds@schleef.org>
Wed, 29 Oct 2003 04:11:11 +0000 (04:11 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 29 Oct 2003 04:11:11 +0000 (04:11 +0000)
Original commit message from CVS:
clean up some warnings

gst/elements/gstbufferstore.c
plugins/elements/gstbufferstore.c

index d7dc0b3..04be0ed 100644 (file)
@@ -328,7 +328,7 @@ gst_buffer_store_get_buffer (GstBufferStore *store, guint64 offset, guint size)
   GList *walk;
   guint8 *data;
   guint tmp;
-  guint64 cur_offset;
+  guint64 cur_offset = 0;
   gboolean have_offset;
   GstBuffer *ret = NULL;
 
@@ -418,10 +418,10 @@ guint
 gst_buffer_store_get_size (GstBufferStore *store, guint64 offset)
 {
   GList *walk;
-  guint64 cur_offset;
+  guint64 cur_offset = 0;
   gboolean have_offset;
   gboolean counting = FALSE;
-  GstBuffer *current;
+  GstBuffer *current = NULL;
   guint ret = 0;
 
   g_return_val_if_fail (GST_IS_BUFFER_STORE (store), 0);
index d7dc0b3..04be0ed 100644 (file)
@@ -328,7 +328,7 @@ gst_buffer_store_get_buffer (GstBufferStore *store, guint64 offset, guint size)
   GList *walk;
   guint8 *data;
   guint tmp;
-  guint64 cur_offset;
+  guint64 cur_offset = 0;
   gboolean have_offset;
   GstBuffer *ret = NULL;
 
@@ -418,10 +418,10 @@ guint
 gst_buffer_store_get_size (GstBufferStore *store, guint64 offset)
 {
   GList *walk;
-  guint64 cur_offset;
+  guint64 cur_offset = 0;
   gboolean have_offset;
   gboolean counting = FALSE;
-  GstBuffer *current;
+  GstBuffer *current = NULL;
   guint ret = 0;
 
   g_return_val_if_fail (GST_IS_BUFFER_STORE (store), 0);