summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2011-11-26 19:44:23 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2011-11-26 19:44:23 +0000
commit2d7f9cfe92de5fe8faa767d9261d3adb55c7f5e2 (patch)
tree30cd597de8ce2267f9f99c1cccbdafb9caacd8a0 /gst
parentc3a30e3013ddd19d6c54609921f176dfb571b283 (diff)
parent4d2cb748509a1c7061908b10310e13b8b9ed7e7a (diff)
Merge remote-tracking branch 'origin/master' into 0.11
Conflicts: gst/gstbuffer.h gst/gstbufferlist.h gst/gstcaps.h gst/gstdatetime.h gst/gstelementfactory.h gst/gstevent.h gst/gstghostpad.h gst/gstindexfactory.h gst/gstiterator.h gst/gstmessage.h gst/gstminiobject.h gst/gstpipeline.h gst/gstquery.h gst/gstsegment.h gst/gststructure.h gst/gsttaglist.h gst/gsturi.h gst/gstvalue.h libs/gst/base/gstbitreader.h libs/gst/base/gstbytereader.h libs/gst/base/gstbytewriter.h Note: can't use G_GNUC_MALLOC with GstCaps return values in 0.11 because of the EMPTY+ANY singletons.
Diffstat (limited to 'gst')
-rw-r--r--gst/gstatomicqueue.h2
-rw-r--r--gst/gstbuffer.h2
-rw-r--r--gst/gstbufferlist.h4
-rw-r--r--gst/gstcaps.h26
-rw-r--r--gst/gstdatetime.h12
-rw-r--r--gst/gstelementfactory.h8
-rw-r--r--gst/gstevent.h30
-rw-r--r--gst/gstghostpad.h10
-rw-r--r--gst/gstindexfactory.h6
-rw-r--r--gst/gstiterator.h10
-rw-r--r--gst/gstmessage.h54
-rw-r--r--gst/gstminiobject.h2
-rw-r--r--gst/gstpadtemplate.h2
-rw-r--r--gst/gstparamspecs.h2
-rw-r--r--gst/gstparse.h12
-rw-r--r--gst/gstpipeline.h2
-rw-r--r--gst/gstpluginfeature.h2
-rw-r--r--gst/gstpoll.h4
-rw-r--r--gst/gstpreset.h4
-rw-r--r--gst/gstquery.h30
-rw-r--r--gst/gstsegment.h4
-rw-r--r--gst/gststructure.h18
-rw-r--r--gst/gsttaglist.h14
-rw-r--r--gst/gsturi.h12
-rw-r--r--gst/gstvalue.h2
25 files changed, 137 insertions, 137 deletions
diff --git a/gst/gstatomicqueue.h b/gst/gstatomicqueue.h
index 6d71010c6b..e38e9b43c6 100644
--- a/gst/gstatomicqueue.h
+++ b/gst/gstatomicqueue.h
@@ -39,7 +39,7 @@ G_BEGIN_DECLS
typedef struct _GstAtomicQueue GstAtomicQueue;
-GstAtomicQueue * gst_atomic_queue_new (guint initial_size);
+GstAtomicQueue * gst_atomic_queue_new (guint initial_size) G_GNUC_MALLOC;
void gst_atomic_queue_ref (GstAtomicQueue * queue);
void gst_atomic_queue_unref (GstAtomicQueue * queue);
diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h
index c6b95a58f3..20caf8f234 100644
--- a/gst/gstbuffer.h
+++ b/gst/gstbuffer.h
@@ -481,7 +481,7 @@ GstBuffer* gst_buffer_copy_region (GstBuffer *parent, GstBufferCop
/* span, two buffers, intelligently */
gboolean gst_buffer_is_span_fast (GstBuffer *buf1, GstBuffer *buf2);
-GstBuffer* gst_buffer_span (GstBuffer *buf1, gsize offset, GstBuffer *buf2, gsize size);
+GstBuffer* gst_buffer_span (GstBuffer *buf1, gsize offset, GstBuffer *buf2, gsize size) G_GNUC_MALLOC;
/* metadata */
#include <gst/gstmeta.h>
diff --git a/gst/gstbufferlist.h b/gst/gstbufferlist.h
index d160b04ba9..3aed60b9d0 100644
--- a/gst/gstbufferlist.h
+++ b/gst/gstbufferlist.h
@@ -156,8 +156,8 @@ gst_buffer_list_copy (const GstBufferList * list)
GType gst_buffer_list_get_type (void);
/* allocation */
-GstBufferList * gst_buffer_list_new (void);
-GstBufferList * gst_buffer_list_new_sized (guint size);
+GstBufferList * gst_buffer_list_new (void) G_GNUC_MALLOC;
+GstBufferList * gst_buffer_list_new_sized (guint size) G_GNUC_MALLOC;
guint gst_buffer_list_length (GstBufferList *list);
diff --git a/gst/gstcaps.h b/gst/gstcaps.h
index 2262a1cdb8..4b688ab3d1 100644
--- a/gst/gstcaps.h
+++ b/gst/gstcaps.h
@@ -340,14 +340,14 @@ GType gst_caps_get_type (void);
GstCaps * gst_caps_new_empty (void);
GstCaps * gst_caps_new_any (void);
-GstCaps * gst_caps_new_empty_simple (const char *media_type);
+GstCaps * gst_caps_new_empty_simple (const char *media_type) G_GNUC_WARN_UNUSED_RESULT;
GstCaps * gst_caps_new_simple (const char *media_type,
const char *fieldname,
- ...) G_GNUC_NULL_TERMINATED;
+ ...) G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT;
GstCaps * gst_caps_new_full (GstStructure *struct1,
- ...) G_GNUC_NULL_TERMINATED;
+ ...) G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT;
GstCaps * gst_caps_new_full_valist (GstStructure *structure,
- va_list var_args);
+ va_list var_args) G_GNUC_WARN_UNUSED_RESULT;
GType gst_static_caps_get_type (void);
GstCaps * gst_static_caps_get (GstStaticCaps *static_caps);
@@ -367,8 +367,8 @@ guint gst_caps_get_size (const GstCaps *caps);
GstStructure * gst_caps_get_structure (const GstCaps *caps,
guint index);
GstStructure * gst_caps_steal_structure (GstCaps *caps,
- guint index);
-GstCaps * gst_caps_copy_nth (const GstCaps *caps, guint nth);
+ guint index) G_GNUC_WARN_UNUSED_RESULT;
+GstCaps * gst_caps_copy_nth (const GstCaps *caps, guint nth) G_GNUC_WARN_UNUSED_RESULT;
void gst_caps_truncate (GstCaps *caps);
void gst_caps_set_value (GstCaps *caps,
const char *field,
@@ -401,22 +401,22 @@ gboolean gst_caps_is_strictly_equal (const GstCaps *caps1,
/* operations */
GstCaps * gst_caps_intersect (const GstCaps *caps1,
- const GstCaps *caps2);
+ const GstCaps *caps2) G_GNUC_WARN_UNUSED_RESULT;
GstCaps * gst_caps_intersect_full (const GstCaps *caps1,
const GstCaps *caps2,
- GstCapsIntersectMode mode);
+ GstCapsIntersectMode mode) G_GNUC_WARN_UNUSED_RESULT;
GstCaps * gst_caps_subtract (const GstCaps *minuend,
- const GstCaps *subtrahend);
+ const GstCaps *subtrahend) G_GNUC_WARN_UNUSED_RESULT;
GstCaps * gst_caps_union (const GstCaps *caps1,
- const GstCaps *caps2);
-GstCaps * gst_caps_normalize (const GstCaps *caps);
+ const GstCaps *caps2) G_GNUC_WARN_UNUSED_RESULT;
+GstCaps * gst_caps_normalize (const GstCaps *caps) G_GNUC_WARN_UNUSED_RESULT;
gboolean gst_caps_do_simplify (GstCaps *caps);
void gst_caps_fixate (GstCaps *caps);
/* utility */
-gchar * gst_caps_to_string (const GstCaps *caps);
-GstCaps * gst_caps_from_string (const gchar *string);
+gchar * gst_caps_to_string (const GstCaps *caps) G_GNUC_MALLOC;
+GstCaps * gst_caps_from_string (const gchar *string) G_GNUC_WARN_UNUSED_RESULT;
G_END_DECLS
diff --git a/gst/gstdatetime.h b/gst/gstdatetime.h
index fc4759b2c8..96d8bbdb7b 100644
--- a/gst/gstdatetime.h
+++ b/gst/gstdatetime.h
@@ -45,19 +45,19 @@ gint gst_date_time_get_second (const GstDateTime * datetime);
gint gst_date_time_get_microsecond (const GstDateTime * datetime);
gfloat gst_date_time_get_time_zone_offset (const GstDateTime * datetime);
-GstDateTime * gst_date_time_new_from_unix_epoch_local_time (gint64 secs);
-GstDateTime * gst_date_time_new_from_unix_epoch_utc (gint64 secs);
+GstDateTime * gst_date_time_new_from_unix_epoch_local_time (gint64 secs) G_GNUC_MALLOC;
+GstDateTime * gst_date_time_new_from_unix_epoch_utc (gint64 secs) G_GNUC_MALLOC;
GstDateTime * gst_date_time_new_local_time (gint year, gint month,
gint day, gint hour,
gint minute,
- gdouble seconds);
+ gdouble seconds) G_GNUC_MALLOC;
GstDateTime * gst_date_time_new (gfloat tzoffset,
gint year, gint month,
gint day, gint hour,
gint minute,
- gdouble seconds);
-GstDateTime * gst_date_time_new_now_local_time (void);
-GstDateTime * gst_date_time_new_now_utc (void);
+ gdouble seconds) G_GNUC_MALLOC;
+GstDateTime * gst_date_time_new_now_local_time (void) G_GNUC_MALLOC;
+GstDateTime * gst_date_time_new_now_utc (void) G_GNUC_MALLOC;
GstDateTime * gst_date_time_ref (GstDateTime * datetime);
void gst_date_time_unref (GstDateTime * datetime);
diff --git a/gst/gstelementfactory.h b/gst/gstelementfactory.h
index 62a80ac15f..b2dff92bb7 100644
--- a/gst/gstelementfactory.h
+++ b/gst/gstelementfactory.h
@@ -96,8 +96,8 @@ gboolean gst_element_factory_has_interface (GstElementFacto
const gchar *interfacename);
GstElement* gst_element_factory_create (GstElementFactory *factory,
- const gchar *name);
-GstElement* gst_element_factory_make (const gchar *factoryname, const gchar *name);
+ const gchar *name) G_GNUC_MALLOC;
+GstElement* gst_element_factory_make (const gchar *factoryname, const gchar *name) G_GNUC_MALLOC;
gboolean gst_element_register (GstPlugin *plugin, const gchar *name,
guint rank, GType type);
@@ -234,12 +234,12 @@ gboolean gst_element_factory_list_is_type (GstElementFactory *factory,
GstElementFactoryListType type);
GList * gst_element_factory_list_get_elements (GstElementFactoryListType type,
- GstRank minrank);
+ GstRank minrank) G_GNUC_MALLOC;
GList * gst_element_factory_list_filter (GList *list, const GstCaps *caps,
GstPadDirection direction,
- gboolean subsetonly);
+ gboolean subsetonly) G_GNUC_MALLOC;
G_END_DECLS
#endif /* __GST_ELEMENT_FACTORY_H__ */
diff --git a/gst/gstevent.h b/gst/gstevent.h
index db9fdf2c86..66e5c50775 100644
--- a/gst/gstevent.h
+++ b/gst/gstevent.h
@@ -428,7 +428,7 @@ gst_event_copy (const GstEvent * event)
GType gst_event_get_type (void);
/* custom event */
-GstEvent* gst_event_new_custom (GstEventType type, GstStructure *structure);
+GstEvent* gst_event_new_custom (GstEventType type, GstStructure *structure) G_GNUC_MALLOC;
const GstStructure *
gst_event_get_structure (GstEvent *event);
@@ -441,67 +441,67 @@ guint32 gst_event_get_seqnum (GstEvent *event);
void gst_event_set_seqnum (GstEvent *event, guint32 seqnum);
/* flush events */
-GstEvent * gst_event_new_flush_start (void);
+GstEvent * gst_event_new_flush_start (void) G_GNUC_MALLOC;
-GstEvent * gst_event_new_flush_stop (gboolean reset_time);
+GstEvent * gst_event_new_flush_stop (gboolean reset_time) G_GNUC_MALLOC;
void gst_event_parse_flush_stop (GstEvent *event, gboolean *reset_time);
/* EOS event */
-GstEvent * gst_event_new_eos (void);
+GstEvent * gst_event_new_eos (void) G_GNUC_MALLOC;
/* Caps events */
-GstEvent * gst_event_new_caps (GstCaps *caps);
+GstEvent * gst_event_new_caps (GstCaps *caps) G_GNUC_MALLOC;
void gst_event_parse_caps (GstEvent *event, GstCaps **caps);
/* segment event */
-GstEvent* gst_event_new_segment (const GstSegment *segment);
+GstEvent* gst_event_new_segment (const GstSegment *segment) G_GNUC_MALLOC;
void gst_event_parse_segment (GstEvent *event, const GstSegment **segment);
void gst_event_copy_segment (GstEvent *event, GstSegment *segment);
/* tag event */
-GstEvent* gst_event_new_tag (GstTagList *taglist);
+GstEvent* gst_event_new_tag (GstTagList *taglist) G_GNUC_MALLOC;
void gst_event_parse_tag (GstEvent *event, GstTagList **taglist);
/* buffer */
GstEvent * gst_event_new_buffer_size (GstFormat format, gint64 minsize, gint64 maxsize,
- gboolean async);
+ gboolean async) G_GNUC_MALLOC;
void gst_event_parse_buffer_size (GstEvent *event, GstFormat *format, gint64 *minsize,
gint64 *maxsize, gboolean *async);
/* sink message */
-GstEvent* gst_event_new_sink_message (GstMessage *msg);
+GstEvent* gst_event_new_sink_message (GstMessage *msg) G_GNUC_MALLOC;
void gst_event_parse_sink_message (GstEvent *event, GstMessage **msg);
/* QOS events */
GstEvent* gst_event_new_qos (GstQOSType type, gdouble proportion,
- GstClockTimeDiff diff, GstClockTime timestamp);
+ GstClockTimeDiff diff, GstClockTime timestamp) G_GNUC_MALLOC;
void gst_event_parse_qos (GstEvent *event, GstQOSType *type,
gdouble *proportion, GstClockTimeDiff *diff,
GstClockTime *timestamp);
/* seek event */
GstEvent* gst_event_new_seek (gdouble rate, GstFormat format, GstSeekFlags flags,
GstSeekType start_type, gint64 start,
- GstSeekType stop_type, gint64 stop);
+ GstSeekType stop_type, gint64 stop) G_GNUC_MALLOC;
void gst_event_parse_seek (GstEvent *event, gdouble *rate, GstFormat *format,
GstSeekFlags *flags,
GstSeekType *start_type, gint64 *start,
GstSeekType *stop_type, gint64 *stop);
/* navigation event */
-GstEvent* gst_event_new_navigation (GstStructure *structure);
+GstEvent* gst_event_new_navigation (GstStructure *structure) G_GNUC_MALLOC;
/* latency event */
-GstEvent* gst_event_new_latency (GstClockTime latency);
+GstEvent* gst_event_new_latency (GstClockTime latency) G_GNUC_MALLOC;
void gst_event_parse_latency (GstEvent *event, GstClockTime *latency);
/* step event */
GstEvent* gst_event_new_step (GstFormat format, guint64 amount, gdouble rate,
- gboolean flush, gboolean intermediate);
+ gboolean flush, gboolean intermediate) G_GNUC_MALLOC;
void gst_event_parse_step (GstEvent *event, GstFormat *format, guint64 *amount,
gdouble *rate, gboolean *flush, gboolean *intermediate);
/* renegotiate event */
-GstEvent* gst_event_new_reconfigure (void);
+GstEvent* gst_event_new_reconfigure (void) G_GNUC_MALLOC;
G_END_DECLS
diff --git a/gst/gstghostpad.h b/gst/gstghostpad.h
index 616371da04..6aa4d26f7b 100644
--- a/gst/gstghostpad.h
+++ b/gst/gstghostpad.h
@@ -66,7 +66,7 @@ gboolean gst_proxy_pad_event_default (GstPad *pad, G
GstEvent *event);
gboolean gst_proxy_pad_query_default (GstPad *pad, GstObject *parent,
GstQuery *query);
-GstIterator* gst_proxy_pad_iterate_internal_links_default (GstPad *pad, GstObject *parent);
+GstIterator* gst_proxy_pad_iterate_internal_links_default (GstPad *pad, GstObject *parent) G_GNUC_MALLOC;
GstFlowReturn gst_proxy_pad_chain_default (GstPad *pad, GstObject *parent,
GstBuffer *buffer);
GstFlowReturn gst_proxy_pad_chain_list_default (GstPad *pad, GstObject *parent,
@@ -111,11 +111,11 @@ struct _GstGhostPadClass
GType gst_ghost_pad_get_type (void);
-GstPad* gst_ghost_pad_new (const gchar *name, GstPad *target);
-GstPad* gst_ghost_pad_new_no_target (const gchar *name, GstPadDirection dir);
+GstPad* gst_ghost_pad_new (const gchar *name, GstPad *target) G_GNUC_MALLOC;
+GstPad* gst_ghost_pad_new_no_target (const gchar *name, GstPadDirection dir) G_GNUC_MALLOC;
-GstPad* gst_ghost_pad_new_from_template (const gchar *name, GstPad * target, GstPadTemplate * templ);
-GstPad* gst_ghost_pad_new_no_target_from_template (const gchar *name, GstPadTemplate * templ);
+GstPad* gst_ghost_pad_new_from_template (const gchar *name, GstPad * target, GstPadTemplate * templ) G_GNUC_MALLOC;
+GstPad* gst_ghost_pad_new_no_target_from_template (const gchar *name, GstPadTemplate * templ) G_GNUC_MALLOC;
GstPad* gst_ghost_pad_get_target (GstGhostPad *gpad);
gboolean gst_ghost_pad_set_target (GstGhostPad *gpad, GstPad *newtarget);
diff --git a/gst/gstindexfactory.h b/gst/gstindexfactory.h
index 4c29b48770..5cffd8615a 100644
--- a/gst/gstindexfactory.h
+++ b/gst/gstindexfactory.h
@@ -63,13 +63,13 @@ struct _GstIndexFactoryClass {
GType gst_index_factory_get_type (void);
GstIndexFactory* gst_index_factory_new (const gchar *name,
- const gchar *longdesc, GType type);
+ const gchar *longdesc, GType type) G_GNUC_MALLOC;
void gst_index_factory_destroy (GstIndexFactory *factory);
GstIndexFactory* gst_index_factory_find (const gchar *name);
-GstIndex* gst_index_factory_create (GstIndexFactory *factory);
-GstIndex* gst_index_factory_make (const gchar *name);
+GstIndex* gst_index_factory_create (GstIndexFactory *factory) G_GNUC_MALLOC;
+GstIndex* gst_index_factory_make (const gchar *name) G_GNUC_MALLOC;
G_END_DECLS
diff --git a/gst/gstiterator.h b/gst/gstiterator.h
index 75ae138a55..2a21f8b381 100644
--- a/gst/gstiterator.h
+++ b/gst/gstiterator.h
@@ -236,19 +236,19 @@ GstIterator* gst_iterator_new (guint size,
GstIteratorNextFunction next,
GstIteratorItemFunction item,
GstIteratorResyncFunction resync,
- GstIteratorFreeFunction free);
+ GstIteratorFreeFunction free) G_GNUC_MALLOC;
GstIterator* gst_iterator_new_list (GType type,
GMutex *lock,
guint32 *master_cookie,
GList **list,
GObject * owner,
- GstIteratorItemFunction item);
+ GstIteratorItemFunction item) G_GNUC_MALLOC;
GstIterator* gst_iterator_new_single (GType type,
- const GValue * object);
+ const GValue * object) G_GNUC_MALLOC;
-GstIterator* gst_iterator_copy (const GstIterator *it);
+GstIterator* gst_iterator_copy (const GstIterator *it) G_GNUC_MALLOC;
/* using iterators */
GstIteratorResult gst_iterator_next (GstIterator *it, GValue * elem);
@@ -259,7 +259,7 @@ void gst_iterator_push (GstIterator *it, GstIte
/* higher-order functions that operate on iterators */
GstIterator* gst_iterator_filter (GstIterator *it, GCompareFunc func,
- const GValue * user_data);
+ const GValue * user_data) G_GNUC_MALLOC;
GstIteratorResult gst_iterator_fold (GstIterator *it,
GstIteratorFoldFunction func,
GValue *ret, gpointer user_data);
diff --git a/gst/gstmessage.h b/gst/gstmessage.h
index 050be67ce4..48190cf844 100644
--- a/gst/gstmessage.h
+++ b/gst/gstmessage.h
@@ -398,7 +398,7 @@ gst_message_copy (const GstMessage * msg)
/* custom messages */
GstMessage * gst_message_new_custom (GstMessageType type,
GstObject * src,
- GstStructure * structure);
+ GstStructure * structure) G_GNUC_MALLOC;
const GstStructure *
gst_message_get_structure (GstMessage *message);
@@ -409,27 +409,27 @@ guint32 gst_message_get_seqnum (GstMessage *message);
void gst_message_set_seqnum (GstMessage *message, guint32 seqnum);
/* EOS */
-GstMessage * gst_message_new_eos (GstObject * src);
+GstMessage * gst_message_new_eos (GstObject * src) G_GNUC_MALLOC;
/* ERROR */
-GstMessage * gst_message_new_error (GstObject * src, GError * error, const gchar * debug);
+GstMessage * gst_message_new_error (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
void gst_message_parse_error (GstMessage *message, GError **gerror, gchar **debug);
/* WARNING */
-GstMessage * gst_message_new_warning (GstObject * src, GError * error, const gchar * debug);
+GstMessage * gst_message_new_warning (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
void gst_message_parse_warning (GstMessage *message, GError **gerror, gchar **debug);
/* INFO */
-GstMessage * gst_message_new_info (GstObject * src, GError * error, const gchar * debug);
+GstMessage * gst_message_new_info (GstObject * src, GError * error, const gchar * debug) G_GNUC_MALLOC;
void gst_message_parse_info (GstMessage *message, GError **gerror, gchar **debug);
/* TAG */
-GstMessage * gst_message_new_tag (GstObject * src, GstTagList * tag_list);
+GstMessage * gst_message_new_tag (GstObject * src, GstTagList * tag_list) G_GNUC_MALLOC;
void gst_message_parse_tag (GstMessage *message, GstTagList **tag_list);
/* BUFFERING */
-GstMessage * gst_message_new_buffering (GstObject * src, gint percent);
+GstMessage * gst_message_new_buffering (GstObject * src, gint percent) G_GNUC_MALLOC;
void gst_message_parse_buffering (GstMessage *message, gint *percent);
void gst_message_set_buffering_stats (GstMessage *message, GstBufferingMode mode,
gint avg_in, gint avg_out,
@@ -440,93 +440,93 @@ void gst_message_parse_buffering_stats (GstMessage *message, GstBuffe
/* STATE_CHANGED */
GstMessage * gst_message_new_state_changed (GstObject * src, GstState oldstate,
- GstState newstate, GstState pending);
+ GstState newstate, GstState pending) G_GNUC_MALLOC;
void gst_message_parse_state_changed (GstMessage *message, GstState *oldstate,
GstState *newstate, GstState *pending);
/* STATE_DIRTY */
-GstMessage * gst_message_new_state_dirty (GstObject * src);
+GstMessage * gst_message_new_state_dirty (GstObject * src) G_GNUC_MALLOC;
/* STEP_DONE */
GstMessage * gst_message_new_step_done (GstObject * src, GstFormat format, guint64 amount,
gdouble rate, gboolean flush, gboolean intermediate,
- guint64 duration, gboolean eos);
+ guint64 duration, gboolean eos) G_GNUC_MALLOC;
void gst_message_parse_step_done (GstMessage * message, GstFormat *format, guint64 *amount,
gdouble *rate, gboolean *flush, gboolean *intermediate,
guint64 *duration, gboolean *eos);
/* CLOCK_PROVIDE */
-GstMessage * gst_message_new_clock_provide (GstObject * src, GstClock *clock, gboolean ready);
+GstMessage * gst_message_new_clock_provide (GstObject * src, GstClock *clock, gboolean ready) G_GNUC_MALLOC;
void gst_message_parse_clock_provide (GstMessage *message, GstClock **clock,
gboolean *ready);
/* CLOCK_LOST */
-GstMessage * gst_message_new_clock_lost (GstObject * src, GstClock *clock);
+GstMessage * gst_message_new_clock_lost (GstObject * src, GstClock *clock) G_GNUC_MALLOC;
void gst_message_parse_clock_lost (GstMessage *message, GstClock **clock);
/* NEW_CLOCK */
-GstMessage * gst_message_new_new_clock (GstObject * src, GstClock *clock);
+GstMessage * gst_message_new_new_clock (GstObject * src, GstClock *clock) G_GNUC_MALLOC;
void gst_message_parse_new_clock (GstMessage *message, GstClock **clock);
/* APPLICATION */
-GstMessage * gst_message_new_application (GstObject * src, GstStructure * structure);
+GstMessage * gst_message_new_application (GstObject * src, GstStructure * structure) G_GNUC_MALLOC;
/* ELEMENT */
-GstMessage * gst_message_new_element (GstObject * src, GstStructure * structure);
+GstMessage * gst_message_new_element (GstObject * src, GstStructure * structure) G_GNUC_MALLOC;
/* SEGMENT_START */
-GstMessage * gst_message_new_segment_start (GstObject * src, GstFormat format, gint64 position);
+GstMessage * gst_message_new_segment_start (GstObject * src, GstFormat format, gint64 position) G_GNUC_MALLOC;
void gst_message_parse_segment_start (GstMessage *message, GstFormat *format,
gint64 *position);
/* SEGMENT_DONE */
-GstMessage * gst_message_new_segment_done (GstObject * src, GstFormat format, gint64 position);
+GstMessage * gst_message_new_segment_done (GstObject * src, GstFormat format, gint64 position) G_GNUC_MALLOC;
void gst_message_parse_segment_done (GstMessage *message, GstFormat *format,
gint64 *position);
/* DURATION */
-GstMessage * gst_message_new_duration (GstObject * src, GstFormat format, gint64 duration);
+GstMessage * gst_message_new_duration (GstObject * src, GstFormat format, gint64 duration) G_GNUC_MALLOC;
void gst_message_parse_duration (GstMessage *message, GstFormat *format,
gint64 *duration);
/* LATENCY */
-GstMessage * gst_message_new_latency (GstObject * src);
+GstMessage * gst_message_new_latency (GstObject * src) G_GNUC_MALLOC;
/* ASYNC_START */
-GstMessage * gst_message_new_async_start (GstObject * src);
+GstMessage * gst_message_new_async_start (GstObject * src) G_GNUC_MALLOC;
/* ASYNC_DONE */
-GstMessage * gst_message_new_async_done (GstObject * src, gboolean reset_time);
+GstMessage * gst_message_new_async_done (GstObject * src, gboolean reset_time) G_GNUC_MALLOC;
void gst_message_parse_async_done (GstMessage *message, gboolean *reset_time);
/* STRUCTURE CHANGE */
GstMessage * gst_message_new_structure_change (GstObject * src, GstStructureChangeType type,
- GstElement *owner, gboolean busy);
+ GstElement *owner, gboolean busy) G_GNUC_MALLOC;
void gst_message_parse_structure_change (GstMessage *message, GstStructureChangeType *type,
GstElement **owner, gboolean *busy);
/* STREAM STATUS */
GstMessage * gst_message_new_stream_status (GstObject * src, GstStreamStatusType type,
- GstElement *owner);
+ GstElement *owner) G_GNUC_MALLOC;
void gst_message_parse_stream_status (GstMessage *message, GstStreamStatusType *type,
GstElement **owner);
void gst_message_set_stream_status_object (GstMessage *message, const GValue *object);
const GValue * gst_message_get_stream_status_object (GstMessage *message);
/* REQUEST_STATE */
-GstMessage * gst_message_new_request_state (GstObject * src, GstState state);
+GstMessage * gst_message_new_request_state (GstObject * src, GstState state) G_GNUC_MALLOC;
void gst_message_parse_request_state (GstMessage * message, GstState *state);
/* STEP_START */
GstMessage * gst_message_new_step_start (GstObject * src, gboolean active, GstFormat format,
guint64 amount, gdouble rate, gboolean flush,
- gboolean intermediate);
+ gboolean intermediate) G_GNUC_MALLOC;
void gst_message_parse_step_start (GstMessage * message, gboolean *active, GstFormat *format,
guint64 *amount, gdouble *rate, gboolean *flush,
gboolean *intermediate);
/* QOS */
GstMessage * gst_message_new_qos (GstObject * src, gboolean live, guint64 running_time,
- guint64 stream_time, guint64 timestamp, guint64 duration);
+ guint64 stream_time, guint64 timestamp, guint64 duration) G_GNUC_MALLOC;
void gst_message_set_qos_values (GstMessage * message, gint64 jitter, gdouble proportion,
gint quality);
void gst_message_set_qos_stats (GstMessage * message, GstFormat format, guint64 processed,
@@ -539,7 +539,7 @@ void gst_message_parse_qos_stats (GstMessage * message, GstFormat
guint64 * dropped);
/* PROGRESS */
GstMessage * gst_message_new_progress (GstObject * src, GstProgressType type, const gchar *code,
- const gchar *text);
+ const gchar *text) G_GNUC_MALLOC;
void gst_message_parse_progress (GstMessage * message, GstProgressType * type, gchar ** code,
gchar ** text);
diff --git a/gst/gstminiobject.h b/gst/gstminiobject.h
index f718a570e8..f4807a6e38 100644
--- a/gst/gstminiobject.h
+++ b/gst/gstminiobject.h
@@ -198,7 +198,7 @@ struct _GstMiniObject {
void gst_mini_object_init (GstMiniObject *mini_object,
GType type, gsize size);
-GstMiniObject * gst_mini_object_copy (const GstMiniObject *mini_object);
+GstMiniObject * gst_mini_object_copy (const GstMiniObject *mini_object) G_GNUC_MALLOC;
gboolean gst_mini_object_is_writable (const GstMiniObject *mini_object);
GstMiniObject * gst_mini_object_make_writable (GstMiniObject *mini_object);
diff --git a/gst/gstpadtemplate.h b/gst/gstpadtemplate.h
index 4c8db389bf..7bbbf16fff 100644
--- a/gst/gstpadtemplate.h
+++ b/gst/gstpadtemplate.h
@@ -178,7 +178,7 @@ GType gst_static_pad_template_get_type (void);
GstPadTemplate* gst_pad_template_new (const gchar *name_template,
GstPadDirection direction, GstPadPresence presence,
- GstCaps *caps);
+ GstCaps *caps) G_GNUC_MALLOC;
GstPadTemplate * gst_static_pad_template_get (GstStaticPadTemplate *pad_template);
GstCaps* gst_static_pad_template_get_caps (GstStaticPadTemplate *templ);
diff --git a/gst/gstparamspecs.h b/gst/gstparamspecs.h
index c3aaaa871b..0e22f40f99 100644
--- a/gst/gstparamspecs.h
+++ b/gst/gstparamspecs.h
@@ -120,7 +120,7 @@ GParamSpec * gst_param_spec_fraction (const gchar * name,
gint min_num, gint min_denom,
gint max_num, gint max_denom,
gint default_num, gint default_denom,
- GParamFlags flags);
+ GParamFlags flags) G_GNUC_MALLOC;
G_END_DECLS
diff --git a/gst/gstparse.h b/gst/gstparse.h
index a0f27b3360..4025031049 100644
--- a/gst/gstparse.h
+++ b/gst/gstparse.h
@@ -89,9 +89,9 @@ typedef struct _GstParseContext GstParseContext;
/* create, process and free a parse context */
GType gst_parse_context_get_type (void);
-GstParseContext * gst_parse_context_new (void);
+GstParseContext * gst_parse_context_new (void) G_GNUC_MALLOC;
-gchar ** gst_parse_context_get_missing_elements (GstParseContext * context);
+gchar ** gst_parse_context_get_missing_elements (GstParseContext * context) G_GNUC_MALLOC;
void gst_parse_context_free (GstParseContext * context);
@@ -99,20 +99,20 @@ void gst_parse_context_free (GstParseContext * context);
/* parse functions */
GstElement * gst_parse_launch (const gchar * pipeline_description,
- GError ** error);
+ GError ** error) G_GNUC_MALLOC;
GstElement * gst_parse_launchv (const gchar ** argv,
- GError ** error);
+ GError ** error) G_GNUC_MALLOC;
GstElement * gst_parse_launch_full (const gchar * pipeline_description,
GstParseContext * context,
GstParseFlags flags,
- GError ** error);
+ GError ** error) G_GNUC_MALLOC;
GstElement * gst_parse_launchv_full (const gchar ** argv,
GstParseContext * context,
GstParseFlags flags,
- GError ** error);
+ GError ** error) G_GNUC_MALLOC;
G_END_DECLS
diff --git a/gst/gstpipeline.h b/gst/gstpipeline.h
index cecd27b4a5..43563cb852 100644
--- a/gst/gstpipeline.h
+++ b/gst/gstpipeline.h
@@ -89,7 +89,7 @@ struct _GstPipelineClass {
};
GType gst_pipeline_get_type (void);
-GstElement* gst_pipeline_new (const gchar *name);
+GstElement* gst_pipeline_new (const gchar *name) G_GNUC_MALLOC;
GstBus* gst_pipeline_get_bus (GstPipeline *pipeline);
diff --git a/gst/gstpluginfeature.h b/gst/gstpluginfeature.h
index fede01dba2..b99d9eea95 100644
--- a/gst/gstpluginfeature.h
+++ b/gst/gstpluginfeature.h
@@ -134,7 +134,7 @@ void gst_plugin_feature_set_rank (GstPluginFeature *featu
guint gst_plugin_feature_get_rank (GstPluginFeature *feature);
void gst_plugin_feature_list_free (GList *list);
-GList *gst_plugin_feature_list_copy (GList *list);
+GList *gst_plugin_feature_list_copy (GList *list) G_GNUC_MALLOC;
void gst_plugin_feature_list_debug (GList *list);
/**
diff --git a/gst/gstpoll.h b/gst/gstpoll.h
index 741a79bf82..0bec8855aa 100644
--- a/gst/gstpoll.h
+++ b/gst/gstpoll.h
@@ -63,8 +63,8 @@ typedef struct {
*/
#define GST_POLL_FD_INIT { -1, -1 }
-GstPoll* gst_poll_new (gboolean controllable);
-GstPoll* gst_poll_new_timer (void);
+GstPoll* gst_poll_new (gboolean controllable) G_GNUC_MALLOC;
+GstPoll* gst_poll_new_timer (void) G_GNUC_MALLOC;
void gst_poll_free (GstPoll *set);
void gst_poll_get_read_gpollfd (GstPoll *set, GPollFD *fd);
diff --git a/gst/gstpreset.h b/gst/gstpreset.h
index dae2c9b233..050453d0ea 100644
--- a/gst/gstpreset.h
+++ b/gst/gstpreset.h
@@ -78,9 +78,9 @@ struct _GstPresetInterface
GType gst_preset_get_type(void);
-gchar** gst_preset_get_preset_names (GstPreset *preset);
+gchar** gst_preset_get_preset_names (GstPreset *preset) G_GNUC_MALLOC;
-gchar** gst_preset_get_property_names (GstPreset *preset);
+gchar** gst_preset_get_property_names (GstPreset *preset) G_GNUC_MALLOC;
gboolean gst_preset_load_preset (GstPreset *preset, const gchar *name);
gboolean gst_preset_save_preset (GstPreset *preset, const gchar *name);
diff --git a/gst/gstquery.h b/gst/gstquery.h
index 7895861bab..b81a7d8528 100644
--- a/gst/gstquery.h
+++ b/gst/gstquery.h
@@ -160,7 +160,7 @@ gboolean gst_query_types_contains (const GstQueryType *types,
const GstQueryTypeDefinition*
gst_query_type_get_details (GstQueryType type);
-GstIterator* gst_query_type_iterate_definitions (void);
+GstIterator* gst_query_type_iterate_definitions (void) G_GNUC_MALLOC;
/* refcounting */
/**
@@ -254,43 +254,43 @@ gst_query_copy (const GstQuery * q)
/* application specific query */
-GstQuery * gst_query_new_custom (GstQueryType type, GstStructure *structure);
+GstQuery * gst_query_new_custom (GstQueryType type, GstStructure *structure) G_GNUC_MALLOC;
const GstStructure *
gst_query_get_structure (GstQuery *query);
GstStructure * gst_query_writable_structure (GstQuery *query);
/* position query */
-GstQuery* gst_query_new_position (GstFormat format);
+GstQuery* gst_query_new_position (GstFormat format) G_GNUC_MALLOC;
void gst_query_set_position (GstQuery *query, GstFormat format, gint64 cur);
void gst_query_parse_position (GstQuery *query, GstFormat *format, gint64 *cur);
/* duration query */
-GstQuery* gst_query_new_duration (GstFormat format);
+GstQuery* gst_query_new_duration (GstFormat format) G_GNUC_MALLOC;
void gst_query_set_duration (GstQuery *query, GstFormat format, gint64 duration);
void gst_query_parse_duration (GstQuery *query, GstFormat *format, gint64 *duration);
/* latency query */
-GstQuery* gst_query_new_latency (void);
+GstQuery* gst_query_new_latency (void) G_GNUC_MALLOC;
void gst_query_set_latency (GstQuery *query, gboolean live, GstClockTime min_latency,
GstClockTime max_latency);
void gst_query_parse_latency (GstQuery *query, gboolean *live, GstClockTime *min_latency,
GstClockTime *max_latency);
/* convert query */
-GstQuery* gst_query_new_convert (GstFormat src_format, gint64 value, GstFormat dest_format);
+GstQuery* gst_query_new_convert (GstFormat src_format, gint64 value, GstFormat dest_format) G_GNUC_MALLOC;
void gst_query_set_convert (GstQuery *query, GstFormat src_format, gint64 src_value,
GstFormat dest_format, gint64 dest_value);
void gst_query_parse_convert (GstQuery *query, GstFormat *src_format, gint64 *src_value,
GstFormat *dest_format, gint64 *dest_value);
/* segment query */
-GstQuery* gst_query_new_segment (GstFormat format);
+GstQuery* gst_query_new_segment (GstFormat format) G_GNUC_MALLOC;
void gst_query_set_segment (GstQuery *query, gdouble rate, GstFormat format,
gint64 start_value, gint64 stop_value);
void gst_query_parse_segment (GstQuery *query, gdouble *rate, GstFormat *format,
gint64 *start_value, gint64 *stop_value);
/* seeking query */
-GstQuery* gst_query_new_seeking (GstFormat format);
+GstQuery* gst_query_new_seeking (GstFormat format) G_GNUC_MALLOC;
void gst_query_set_seeking (GstQuery *query, GstFormat format,
gboolean seekable,
gint64 segment_start,
@@ -300,7 +300,7 @@ void gst_query_parse_seeking (GstQuery *query, GstFormat *for
gint64 *segment_start,
gint64 *segment_end);
/* formats query */
-GstQuery* gst_query_new_formats (void);
+GstQuery* gst_query_new_formats (void) G_GNUC_MALLOC;
void gst_query_set_formats (GstQuery *query, gint n_formats, ...);
void gst_query_set_formatsv (GstQuery *query, gint n_formats, const GstFormat *formats);
void gst_query_parse_n_formats (GstQuery *query, guint *n_formats);
@@ -323,7 +323,7 @@ typedef enum {
GST_BUFFERING_LIVE
} GstBufferingMode;
-GstQuery* gst_query_new_buffering (GstFormat format);
+GstQuery* gst_query_new_buffering (GstFormat format) G_GNUC_MALLOC;
void gst_query_set_buffering_percent (GstQuery *query, gboolean busy, gint percent);
void gst_query_parse_buffering_percent (GstQuery *query, gboolean *busy, gint *percent);
@@ -349,12 +349,12 @@ gboolean gst_query_parse_nth_buffering_range (GstQuery *query,
gint64 *stop);
/* URI query */
-GstQuery * gst_query_new_uri (void);
+GstQuery * gst_query_new_uri (void) G_GNUC_MALLOC;
void gst_query_parse_uri (GstQuery *query, gchar **uri);
void gst_query_set_uri (GstQuery *query, const gchar *uri);
/* allocation query */
-GstQuery * gst_query_new_allocation (GstCaps *caps, gboolean need_pool);
+GstQuery * gst_query_new_allocation (GstCaps *caps, gboolean need_pool) G_GNUC_MALLOC;
void gst_query_parse_allocation (GstQuery *query, GstCaps **caps, gboolean *need_pool);
void gst_query_set_allocation_params (GstQuery *query, guint size, guint min_buffers,
@@ -386,7 +386,7 @@ typedef enum {
GST_SCHEDULING_FLAG_SEQUENTIAL = (1 << 1)
} GstSchedulingFlags;
-GstQuery * gst_query_new_scheduling (void);
+GstQuery * gst_query_new_scheduling (void) G_GNUC_MALLOC;
void gst_query_set_scheduling (GstQuery *query, GstSchedulingFlags flags,
gint minsize, gint maxsize, gint align);
@@ -399,13 +399,13 @@ GstPadMode gst_query_parse_nth_scheduling_mode (GstQuery *query, guint inde
gboolean gst_query_has_scheduling_mode (GstQuery *query, GstPadMode mode);
/* accept-caps query */
-GstQuery * gst_query_new_accept_caps (GstCaps *caps);
+GstQuery * gst_query_new_accept_caps (GstCaps *caps) G_GNUC_MALLOC;
void gst_query_parse_accept_caps (GstQuery *query, GstCaps **caps);
void gst_query_set_accept_caps_result (GstQuery *query, gboolean result);
void gst_query_parse_accept_caps_result (GstQuery *query, gboolean *result);
/* caps query */
-GstQuery * gst_query_new_caps (GstCaps *filter);
+GstQuery * gst_query_new_caps (GstCaps *filter) G_GNUC_MALLOC;
void gst_query_parse_caps (GstQuery *query, GstCaps **filter);
void gst_query_set_caps_result (GstQuery *query, GstCaps *caps);
diff --git a/gst/gstsegment.h b/gst/gstsegment.h
index 89addee4cc..92bd32c511 100644
--- a/gst/gstsegment.h
+++ b/gst/gstsegment.h
@@ -146,8 +146,8 @@ struct _GstSegment {
GType gst_segment_get_type (void);
-GstSegment * gst_segment_new (void);
-GstSegment * gst_segment_copy (const GstSegment *segment);
+GstSegment * gst_segment_new (void) G_GNUC_MALLOC;
+GstSegment * gst_segment_copy (const GstSegment *segment) G_GNUC_MALLOC;
void gst_segment_copy_into (const GstSegment *src, GstSegment *dest);
void gst_segment_free (GstSegment *segment);
diff --git a/gst/gststructure.h b/gst/gststructure.h
index 86e100e2e1..e7d790a51f 100644
--- a/gst/gststructure.h
+++ b/gst/gststructure.h
@@ -85,18 +85,18 @@ struct _GstStructure {
GType gst_structure_get_type (void);
-GstStructure * gst_structure_new_empty (const gchar * name);
-GstStructure * gst_structure_new_id_empty (GQuark quark);
+GstStructure * gst_structure_new_empty (const gchar * name) G_GNUC_MALLOC;
+GstStructure * gst_structure_new_id_empty (GQuark quark) G_GNUC_MALLOC;
GstStructure * gst_structure_new (const gchar * name,
const gchar * firstfield,
- ...) G_GNUC_NULL_TERMINATED;
+ ...) G_GNUC_NULL_TERMINATED G_GNUC_MALLOC;
GstStructure * gst_structure_new_valist (const gchar * name,
const gchar * firstfield,
- va_list varargs);
+ va_list varargs) G_GNUC_MALLOC;
GstStructure * gst_structure_new_id (GQuark name_quark,
GQuark field_quark,
- ...);
-GstStructure * gst_structure_copy (const GstStructure *structure);
+ ...) G_GNUC_MALLOC;
+GstStructure * gst_structure_copy (const GstStructure *structure) G_GNUC_MALLOC;
gboolean gst_structure_set_parent_refcount (GstStructure *structure,
gint *refcount);
void gst_structure_free (GstStructure *structure);
@@ -220,9 +220,9 @@ gboolean gst_structure_get_fraction (const GstStructure
gint *value_numerator,
gint *value_denominator);
-gchar * gst_structure_to_string (const GstStructure *structure);
+gchar * gst_structure_to_string (const GstStructure *structure) G_GNUC_MALLOC;
GstStructure * gst_structure_from_string (const gchar *string,
- gchar **end);
+ gchar **end) G_GNUC_MALLOC;
gboolean gst_structure_fixate_field_nearest_int (GstStructure *structure,
const char *field_name,
@@ -251,7 +251,7 @@ gboolean gst_structure_is_subset(const GstStructure *subset,
gboolean gst_structure_can_intersect(const GstStructure *struct1,
const GstStructure *struct2);
GstStructure* gst_structure_intersect (const GstStructure *struct1,
- const GstStructure *struct2);
+ const GstStructure *struct2) G_GNUC_MALLOC;
void gst_structure_fixate (GstStructure *structure);
G_END_DECLS
diff --git a/gst/gsttaglist.h b/gst/gsttaglist.h
index e9c02a0667..92df1f9407 100644
--- a/gst/gsttaglist.h
+++ b/gst/gsttaglist.h
@@ -198,15 +198,15 @@ GstTagFlag gst_tag_get_flag (const gchar * tag);
gboolean gst_tag_is_fixed (const gchar * tag);
/* tag lists */
-GstTagList * gst_tag_list_new_empty (void);
-GstTagList * gst_tag_list_new (const gchar * tag, ...);
-GstTagList * gst_tag_list_new_valist (va_list var_args);
+GstTagList * gst_tag_list_new_empty (void) G_GNUC_MALLOC;
+GstTagList * gst_tag_list_new (const gchar * tag, ...) G_GNUC_MALLOC;
+GstTagList * gst_tag_list_new_valist (va_list var_args) G_GNUC_MALLOC;
-gchar * gst_tag_list_to_string (const GstTagList * list);
-GstTagList * gst_tag_list_new_from_string (const gchar * str);
+gchar * gst_tag_list_to_string (const GstTagList * list) G_GNUC_MALLOC;
+GstTagList * gst_tag_list_new_from_string (const gchar * str) G_GNUC_MALLOC;
gboolean gst_is_tag_list (gconstpointer p);
-GstTagList * gst_tag_list_copy (const GstTagList * list);
+GstTagList * gst_tag_list_copy (const GstTagList * list) G_GNUC_MALLOC;
gboolean gst_tag_list_is_empty (const GstTagList * list);
gboolean gst_tag_list_is_equal (const GstTagList * list1,
const GstTagList * list2);
@@ -215,7 +215,7 @@ void gst_tag_list_insert (GstTagList * into,
GstTagMergeMode mode);
GstTagList * gst_tag_list_merge (const GstTagList * list1,
const GstTagList * list2,
- GstTagMergeMode mode);
+ GstTagMergeMode mode) G_GNUC_MALLOC;
void gst_tag_list_free (GstTagList * list);
guint gst_tag_list_get_tag_size (const GstTagList * list,
const gchar * tag);
diff --git a/gst/gsturi.h b/gst/gsturi.h
index 00c130009b..539bbcb711 100644
--- a/gst/gsturi.h
+++ b/gst/gsturi.h
@@ -126,26 +126,26 @@ gboolean gst_uri_protocol_is_valid (const gchar * protocol);
gboolean gst_uri_protocol_is_supported (const GstURIType type,
const gchar *protocol);
gboolean gst_uri_is_valid (const gchar * uri);
-gchar * gst_uri_get_protocol (const gchar * uri);
+gchar * gst_uri_get_protocol (const gchar * uri) G_GNUC_MALLOC;
gboolean gst_uri_has_protocol (const gchar * uri,
const gchar * protocol);
-gchar * gst_uri_get_location (const gchar * uri);
+gchar * gst_uri_get_location (const gchar * uri) G_GNUC_MALLOC;
gchar * gst_uri_construct (const gchar * protocol,
- const gchar * location);
+ const gchar * location) G_GNUC_MALLOC;
gchar * gst_filename_to_uri (const gchar * filename,
- GError ** error);
+ GError ** error) G_GNUC_MALLOC;
GstElement * gst_element_make_from_uri (const GstURIType type,
const gchar * uri,
- const gchar * elementname);
+ const gchar * elementname) G_GNUC_MALLOC;
/* accessing the interface */
GType gst_uri_handler_get_type (void);
GstURIType gst_uri_handler_get_uri_type (GstURIHandler * handler);
const gchar * const * gst_uri_handler_get_protocols (GstURIHandler * handler);
-gchar * gst_uri_handler_get_uri (GstURIHandler * handler);
+gchar * gst_uri_handler_get_uri (GstURIHandler * handler) G_GNUC_MALLOC;
gboolean gst_uri_handler_set_uri (GstURIHandler * handler,
const gchar * uri,
GError ** error);
diff --git a/gst/gstvalue.h b/gst/gstvalue.h
index ba80ba2369..8dc0098caa 100644
--- a/gst/gstvalue.h
+++ b/gst/gstvalue.h
@@ -436,7 +436,7 @@ void gst_value_register (const GstValueTable *table);
void gst_value_init_and_copy (GValue *dest,
const GValue *src);
-gchar * gst_value_serialize (const GValue *value);
+gchar * gst_value_serialize (const GValue *value) G_GNUC_MALLOC;
gboolean gst_value_deserialize (GValue *dest,
const gchar *src);