diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_aacdec.c gst-openmax-0.10.0.4/omx/gstomx_aacdec.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_aacdec.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_aacdec.c	2009-03-23 17:06:31.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_decoder.aac"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_aacenc.c gst-openmax-0.10.0.4/omx/gstomx_aacenc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_aacenc.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_aacenc.c	2009-03-23 17:06:57.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_encoder.aac"
  
  enum
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_adpcmdec.c gst-openmax-0.10.0.4/omx/gstomx_adpcmdec.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_adpcmdec.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_adpcmdec.c	2009-03-23 17:07:41.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_decoder.adpcm"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_adpcmenc.c gst-openmax-0.10.0.4/omx/gstomx_adpcmenc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_adpcmenc.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_adpcmenc.c	2009-03-23 17:07:28.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_encoder.adpcm"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_amrnbdec.c gst-openmax-0.10.0.4/omx/gstomx_amrnbdec.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_amrnbdec.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_amrnbdec.c	2009-03-23 17:05:26.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_decoder.amrnb"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_amrnbenc.c gst-openmax-0.10.0.4/omx/gstomx_amrnbenc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_amrnbenc.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_amrnbenc.c	2009-03-23 17:05:53.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_encoder.amrnb"
  
  enum
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_amrwbdec.c gst-openmax-0.10.0.4/omx/gstomx_amrwbdec.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_amrwbdec.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_amrwbdec.c	2009-03-23 17:06:08.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_decoder.amrwb"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_amrwbenc.c gst-openmax-0.10.0.4/omx/gstomx_amrwbenc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_amrwbenc.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_amrwbenc.c	2009-03-23 17:06:46.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_encoder.amrwb"
  
  enum
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_audiosink.c gst-openmax-0.10.0.4/omx/gstomx_audiosink.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_audiosink.c	2008-06-23 07:33:31.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_audiosink.c	2009-03-23 17:08:36.000000000 -0500
***************
*** 22,27 ****
--- 22,29 ----
  #include "gstomx_audiosink.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.alsa.alsasink"
  
  static GstOmxBaseSinkClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_avcenc.c gst-openmax-0.10.0.4/omx/gstomx_avcenc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_avcenc.c	2008-06-23 07:33:31.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_avcenc.c	2009-03-23 17:05:42.000000000 -0500
***************
*** 22,27 ****
--- 22,29 ----
  #include "gstomx_avcenc.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.video_encoder.avc"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_base_filter.c gst-openmax-0.10.0.4/omx/gstomx_base_filter.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_base_filter.c	2008-06-23 07:33:31.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_base_filter.c	2009-03-23 17:02:48.000000000 -0500
***************
*** 23,28 ****
--- 23,29 ----
  #include "gstomx.h"
  
  #include <string.h> /* For memcpy */
+ #include <stdlib.h> /* For malloc and free */
  
  static gboolean share_input_buffer = FALSE;
  static gboolean share_output_buffer = FALSE;
***************
*** 384,390 ****
                  }
                  else
                  {
!                     GST_WARNING_OBJECT (self, "couldn't allocate buffer of size %d",
                                          omx_buffer->nFilledLen);
                  }
              }
--- 385,391 ----
                  }
                  else
                  {
!                     GST_WARNING_OBJECT (self, "couldn't allocate buffer of size %ld",
                                          omx_buffer->nFilledLen);
                  }
              }
***************
*** 473,479 ****
      gomx = self->gomx;
  
      GST_LOG_OBJECT (self, "begin");
!     GST_LOG_OBJECT (self, "gst_buffer: size=%lu", GST_BUFFER_SIZE (buf));
  
      GST_LOG_OBJECT (self, "state: %d", gomx->omx_state);
  
--- 474,480 ----
      gomx = self->gomx;
  
      GST_LOG_OBJECT (self, "begin");
!     GST_LOG_OBJECT (self, "gst_buffer: size=%u", GST_BUFFER_SIZE (buf));
  
      GST_LOG_OBJECT (self, "state: %d", gomx->omx_state);
  
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_base_sink.c gst-openmax-0.10.0.4/omx/gstomx_base_sink.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_base_sink.c	2008-06-23 07:33:31.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_base_sink.c	2009-03-23 17:09:16.000000000 -0500
***************
*** 23,28 ****
--- 23,29 ----
  #include "gstomx.h"
  
  #include <string.h> /* For memcpy */
+ #include <stdlib.h> /* For malloc and free */
  
  static gboolean share_input_buffer = FALSE;
  
***************
*** 124,130 ****
      gomx = self->gomx;
  
      GST_LOG_OBJECT (self, "begin");
!     GST_LOG_OBJECT (self, "gst_buffer: size=%lu", GST_BUFFER_SIZE (buf));
  
      GST_LOG_OBJECT (self, "state: %d", gomx->omx_state);
  
--- 125,131 ----
      gomx = self->gomx;
  
      GST_LOG_OBJECT (self, "begin");
!     GST_LOG_OBJECT (self, "gst_buffer: size=%u", GST_BUFFER_SIZE (buf));
  
      GST_LOG_OBJECT (self, "state: %d", gomx->omx_state);
  
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_base_src.c gst-openmax-0.10.0.4/omx/gstomx_base_src.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_base_src.c	2008-06-23 07:42:30.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_base_src.c	2009-03-23 17:09:34.000000000 -0500
***************
*** 23,28 ****
--- 23,29 ----
  #include "gstomx.h"
  
  #include <string.h> /* For memcpy */
+ #include <stdlib.h> /* For malloc and free */
  #include <stdbool.h>
  
  enum
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_base_videodec.c gst-openmax-0.10.0.4/omx/gstomx_base_videodec.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_base_videodec.c	2008-06-23 07:42:30.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_base_videodec.c	2009-03-23 16:58:19.000000000 -0500
***************
*** 22,27 ****
--- 22,29 ----
  #include "gstomx_base_videodec.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  static GstOmxBaseFilterClass *parent_class = NULL;
  
  static GstCaps *
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_base_videoenc.c gst-openmax-0.10.0.4/omx/gstomx_base_videoenc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_base_videoenc.c	2008-06-23 07:33:31.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_base_videoenc.c	2009-03-23 17:03:19.000000000 -0500
***************
*** 23,28 ****
--- 23,29 ----
  #include "gstomx.h"
  
  #include <string.h> /* For strcmp */
+ #include <stdlib.h> /* For malloc and free */
  
  enum
  {
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_g711enc.c gst-openmax-0.10.0.4/omx/gstomx_g711enc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_g711enc.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_g711enc.c	2009-03-23 17:07:54.000000000 -0500
***************
*** 24,29 ****
--- 24,30 ----
  #include "gstomx.h"
  
  #include <string.h> /* For strcmp */
+ #include <stdlib.h> /* For malloc and free */
  
  #define OMX_COMPONENT_NAME "OMX.st.audio_encoder.g711"
  
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_g729enc.c gst-openmax-0.10.0.4/omx/gstomx_g729enc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_g729enc.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_g729enc.c	2009-03-23 17:08:07.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_encoder.g729"
  
  enum
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_h263dec.c gst-openmax-0.10.0.4/omx/gstomx_h263dec.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_h263dec.c	2008-06-23 07:42:30.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_h263dec.c	2009-03-23 17:04:45.000000000 -0500
***************
*** 22,27 ****
--- 22,29 ----
  #include "gstomx_h263dec.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.video_decoder.h263"
  
  static GstOmxBaseVideoDecClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_h263enc.c gst-openmax-0.10.0.4/omx/gstomx_h263enc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_h263enc.c	2008-06-23 07:33:31.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_h263enc.c	2009-03-23 17:04:59.000000000 -0500
***************
*** 22,27 ****
--- 22,29 ----
  #include "gstomx_h263enc.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.video_encoder.h263"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_mp3dec.c gst-openmax-0.10.0.4/omx/gstomx_mp3dec.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_mp3dec.c	2008-06-23 10:17:33.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_mp3dec.c	2009-03-23 17:07:10.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_decoder.mp3.mad"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_mpeg4enc.c gst-openmax-0.10.0.4/omx/gstomx_mpeg4enc.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_mpeg4enc.c	2008-06-23 07:33:31.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_mpeg4enc.c	2009-03-23 17:03:38.000000000 -0500
***************
*** 22,27 ****
--- 22,29 ----
  #include "gstomx_mpeg4enc.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.video_encoder.mpeg4"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_videosink.c gst-openmax-0.10.0.4/omx/gstomx_videosink.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_videosink.c	2008-06-23 07:42:30.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_videosink.c	2009-03-23 17:08:53.000000000 -0500
***************
*** 24,29 ****
--- 24,30 ----
  #include "gstomx.h"
  
  #include <string.h> /* For strcmp */
+ #include <stdlib.h> /* For malloc and free */
  #include <stdbool.h>
  
  #define OMX_COMPONENT_NAME "OMX.st.videosink"
diff -c -r orig/gst-openmax-0.10.0.4/omx/gstomx_vorbisdec.c gst-openmax-0.10.0.4/omx/gstomx_vorbisdec.c
*** orig/gst-openmax-0.10.0.4/omx/gstomx_vorbisdec.c	2008-06-23 07:42:30.000000000 -0500
--- gst-openmax-0.10.0.4/omx/gstomx_vorbisdec.c	2009-03-23 17:06:20.000000000 -0500
***************
*** 23,28 ****
--- 23,30 ----
  #include "gstomx_base_filter.h"
  #include "gstomx.h"
  
+ #include <stdlib.h> /* For malloc and free */
+ 
  #define OMX_COMPONENT_NAME "OMX.st.audio_decoder.ogg.single"
  
  static GstOmxBaseFilterClass *parent_class = NULL;
