gst/gstbuffer.h: Add an explicit cast to GstBuffer** to keep old code that added an explicit cast to GstMiniObject** ...

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.
This commit is contained in:
Tim-Philipp Müller 2006-10-18 10:08:45 +00:00
parent d3da3ed47b
commit 5e4699885a
2 changed files with 8 additions and 1 deletions

View file

@ -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):

View 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