gst/gstbuffer.h: Add an explicit cast to GstBuffer** to keep old code that added...
authorTim-Philipp Müller <tim@centricular.net>
Wed, 18 Oct 2006 10:08:45 +0000 (10:08 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 18 Oct 2006 10:08:45 +0000 (10:08 +0000)
Original commit message from CVS:
* gst/gstbuffer.h:
Add an explicit cast to GstBuffer** to keep old code that added an
explicit cast to GstMiniObject** for gst_mini_object_replace()
compiling without warning.

ChangeLog
gst/gstbuffer.h

index ff505a7..2cf6bcb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-10-18  Tim-Philipp Müller  <tim at centricular dot net>
+
+       * gst/gstbuffer.h:
+         Add an explicit cast to GstBuffer** to keep old code that added an
+         explicit cast to GstMiniObject** for gst_mini_object_replace()
+         compiling without warning.
+
 2006-10-18  Stefan Kost  <ensonic@users.sf.net>
 
        * gst/gstvalue.c: (gst_value_set_date), (gst_date_copy):
index 6fd8872..2e87b95 100644 (file)
@@ -378,7 +378,7 @@ GstBuffer*      gst_buffer_make_metadata_writable (GstBuffer *buf);
  */
 #define                gst_buffer_replace(obuf,nbuf) \
 G_STMT_START {                                                               \
-  GstBuffer **___obufaddr = (obuf);                       \
+  GstBuffer **___obufaddr = (GstBuffer **)(obuf);         \
   gst_mini_object_replace ((GstMiniObject **)___obufaddr, \
       GST_MINI_OBJECT_CAST (nbuf));                       \
 } G_STMT_END