typefindfunctions: Fix compiler warning
authorPhilippe Normand <phil@base-art.net>
Mon, 28 Nov 2011 19:10:18 +0000 (20:10 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 28 Nov 2011 19:10:49 +0000 (20:10 +0100)
gst/typefind/gsttypefindfunctions.c

index 55c21a9..7784d2c 100644 (file)
@@ -215,7 +215,7 @@ typedef struct
 {
   size_t bomlen;
   const char *const bom;
-  gboolean (*checker) (const guint8 *, gint, gint);
+    gboolean (*checker) (const guint8 *, gint, gint);
   int boost;
   int endianness;
 } GstUnicodeTester;
@@ -288,7 +288,7 @@ unicode_type_find (GstTypeFind * tf, const GstUnicodeTester * tester,
   const guint8 *data = gst_type_find_peek (tf, 0, len);
   int prob = -1;
   const gint max_scan_size = 256 * 1024;
-  int endianness;
+  int endianness = 0;
 
   if (!data) {
     len = 2;