Fix compiler warnings with gcc 4.2.1 on OSX.
authorAlessandro Decina <alessandro.d@gmail.com>
Wed, 1 Dec 2010 22:20:36 +0000 (23:20 +0100)
committerAlessandro Decina <alessandro.d@gmail.com>
Wed, 1 Dec 2010 22:20:36 +0000 (23:20 +0100)
gst/pcapparse/gstpcapparse.c
sys/applemedia/mioapi.c

index 640bbe3..2d3436c 100644 (file)
@@ -330,7 +330,7 @@ gst_pcap_parse_scan_frame (GstPcapParse * self,
     const guint8 * buf,
     gint buf_size, const guint8 ** payload, gint * payload_size)
 {
-  const guint8 *buf_ip;
+  const guint8 *buf_ip = 0;
   const guint8 *buf_udp;
   guint16 eth_type;
   guint8 b;
index f3357b0..81b38e9 100644 (file)
@@ -24,6 +24,8 @@
 #define MIO_FRAMEWORK_PATH "/System/Library/PrivateFrameworks/" \
     "CoreMediaIOServices.framework/CoreMediaIOServices"
 
+GType gst_mio_api_get_type (void);
+
 G_DEFINE_TYPE (GstMIOApi, gst_mio_api, GST_TYPE_DYN_API);
 
 static void