Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally

Since we started depending on GLib 2.44, we can be sure this macro is
defined (it will be a no-op on compilers that don't support it). For
plugins we should just start using `G_DECLARE_FINAL_TYPE` which means
we no longer need the macro there, but for most types in core we don't
want to break ABI, which means it's better to just keep it like it is
(and use the `#ifdef` instead).
This commit is contained in:
Niels De Graef 2019-06-04 08:50:59 +02:00
parent 56d19cbf75
commit 09141c6e1f
71 changed files with 0 additions and 154 deletions

View file

@ -191,9 +191,7 @@ GstMemory * gst_memory_new_wrapped (GstMemoryFlags flags, gpointer data, gsi
gsize offset, gsize size, gpointer user_data,
GDestroyNotify notify);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAllocationParams, gst_allocation_params_free)
#endif
G_END_DECLS

View file

@ -65,9 +65,7 @@ gpointer gst_atomic_queue_peek (GstAtomicQueue* queue);
GST_API
guint gst_atomic_queue_length (GstAtomicQueue * queue);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAtomicQueue, gst_atomic_queue_unref)
#endif
G_END_DECLS

View file

@ -250,9 +250,7 @@ void gst_bin_set_suppressed_flags (GstBin * bin, GstElementFlags flag
GST_API
GstElementFlags gst_bin_get_suppressed_flags (GstBin * bin);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBin, gst_object_unref)
#endif
G_END_DECLS

View file

@ -796,13 +796,9 @@ GST_API
GstReferenceTimestampMeta * gst_buffer_get_reference_timestamp_meta (GstBuffer * buffer,
GstCaps * reference);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBuffer, gst_buffer_unref)
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBufferPool, gst_object_unref)
#endif
G_END_DECLS

View file

@ -238,9 +238,7 @@ gsize gst_buffer_list_calculate_size (GstBufferList *
#define gst_buffer_list_add(l,b) gst_buffer_list_insert((l),-1,(b));
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBufferList, gst_buffer_list_unref)
#endif
G_END_DECLS

View file

@ -223,9 +223,7 @@ void gst_bus_enable_sync_message_emission (GstBus * bus);
GST_API
void gst_bus_disable_sync_message_emission (GstBus * bus);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBus, gst_object_unref)
#endif
G_END_DECLS

View file

@ -580,9 +580,7 @@ gchar * gst_caps_to_string (const GstCaps *caps) G_GNUC_
GST_API
GstCaps * gst_caps_from_string (const gchar *string) G_GNUC_WARN_UNUSED_RESULT;
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstCaps, gst_caps_unref)
#endif
G_END_DECLS

View file

@ -117,9 +117,7 @@ void gst_caps_features_remove (GstCapsFeatures * features, const gc
GST_API
void gst_caps_features_remove_id (GstCapsFeatures * features, GQuark feature);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstCapsFeatures, gst_caps_features_free)
#endif
G_END_DECLS

View file

@ -641,9 +641,7 @@ gboolean gst_clock_periodic_id_reinit (GstClock * clock,
GstClockTime start_time,
GstClockTime interval);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstClock, gst_object_unref)
#endif
G_END_DECLS

View file

@ -151,9 +151,7 @@ GstStructure * gst_context_writable_structure (GstContext * context
GST_API
gboolean gst_context_is_persistent (const GstContext * context);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstContext, gst_context_unref)
#endif
G_END_DECLS

View file

@ -136,9 +136,7 @@ void gst_control_binding_set_disabled (GstControlBinding *
GST_API
gboolean gst_control_binding_is_disabled (GstControlBinding * binding);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstControlBinding, gst_object_unref)
#endif
G_END_DECLS

View file

@ -137,13 +137,9 @@ GST_API
gboolean gst_control_source_get_value_array (GstControlSource *self, GstClockTime timestamp,
GstClockTime interval, guint n_values,
gdouble *values);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstControlSource, gst_object_unref)
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstValueArray, gst_object_unref)
#endif
G_END_DECLS

View file

@ -154,9 +154,7 @@ GstDateTime * gst_date_time_ref (GstDateTime * datetime);
GST_API
void gst_date_time_unref (GstDateTime * datetime);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDateTime, gst_date_time_unref)
#endif
G_END_DECLS

View file

@ -113,9 +113,7 @@ gboolean gst_device_has_classes (GstDevice * device,
const gchar * classes);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDevice, gst_object_unref)
#endif
G_END_DECLS

View file

@ -111,9 +111,7 @@ void gst_device_monitor_set_show_all_devices (GstDeviceMonitor * monitor, g
GST_API
gboolean gst_device_monitor_get_show_all_devices (GstDeviceMonitor * monitor);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDeviceMonitor, gst_object_unref)
#endif
G_END_DECLS

View file

@ -172,9 +172,7 @@ void gst_device_provider_device_changed (GstDeviceProvider *
GST_API
GstDeviceProviderFactory * gst_device_provider_get_factory (GstDeviceProvider * provider);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDeviceProvider, gst_object_unref)
#endif
G_END_DECLS

View file

@ -95,9 +95,7 @@ GST_API
GList * gst_device_provider_factory_list_get_device_providers (
GstRank minrank) G_GNUC_MALLOC;
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDeviceProviderFactory, gst_object_unref)
#endif
G_END_DECLS

View file

@ -1057,9 +1057,7 @@ GList* gst_element_get_pad_template_list (GstElement *elem
GST_API
const gchar * gst_element_get_metadata (GstElement * element, const gchar * key);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstElement, gst_object_unref)
#endif
G_END_DECLS

View file

@ -239,9 +239,7 @@ GST_API
GList * gst_element_factory_list_filter (GList *list, const GstCaps *caps,
GstPadDirection direction,
gboolean subsetonly) G_GNUC_MALLOC;
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstElementFactory, gst_object_unref)
#endif
G_END_DECLS

View file

@ -731,9 +731,7 @@ GstEvent* gst_event_new_segment_done (GstFormat format, gint64 positi
GST_API
void gst_event_parse_segment_done (GstEvent *event, GstFormat *format, gint64 *position);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEvent, gst_event_unref)
#endif
G_END_DECLS

View file

@ -142,13 +142,9 @@ GST_API
gboolean gst_ghost_pad_internal_activate_mode_default (GstPad * pad, GstObject * parent,
GstPadMode mode, gboolean active);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstGhostPad, gst_object_unref)
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstProxyPad, gst_object_unref)
#endif
G_END_DECLS

View file

@ -283,9 +283,7 @@ GST_API
gboolean gst_iterator_find_custom (GstIterator *it, GCompareFunc func,
GValue *elem, gpointer user_data);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstIterator, gst_iterator_free)
#endif
G_END_DECLS

View file

@ -384,13 +384,9 @@ GstMemory * gst_memory_share (GstMemory *mem, gssize offset, gssize si
GST_API
gboolean gst_memory_is_span (GstMemory *mem1, GstMemory *mem2, gsize *offset);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstMemory, gst_memory_unref)
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAllocator, gst_object_unref)
#endif
G_END_DECLS

View file

@ -869,9 +869,7 @@ void gst_message_parse_redirect_entry (GstMessage * message, gsiz
GST_API
gsize gst_message_get_num_redirect_entries (GstMessage * message);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstMessage, gst_message_unref)
#endif
G_END_DECLS

View file

@ -324,9 +324,7 @@ GstClockTime gst_object_get_control_rate (GstObject * object);
GST_API
void gst_object_set_control_rate (GstObject * object, GstClockTime control_rate);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstObject, gst_object_unref)
#endif
G_END_DECLS

View file

@ -1563,9 +1563,7 @@ GST_API
gboolean gst_pad_forward (GstPad *pad, GstPadForwardFunction forward,
gpointer user_data);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPad, gst_object_unref)
#endif
G_END_DECLS

View file

@ -231,9 +231,7 @@ GstCaps* gst_pad_template_get_caps (GstPadTemplate *templ);
GST_API
void gst_pad_template_pad_created (GstPadTemplate * templ, GstPad * pad);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPadTemplate, gst_object_unref)
#endif
G_END_DECLS

View file

@ -131,9 +131,7 @@ GstElement * gst_parse_launchv_full (const gchar ** argv,
GstParseFlags flags,
GError ** error) G_GNUC_MALLOC;
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstParseContext, gst_parse_context_free)
#endif
G_END_DECLS

View file

@ -130,9 +130,7 @@ void gst_pipeline_set_auto_flush_bus (GstPipeline *pipeline, gboolean
GST_API
gboolean gst_pipeline_get_auto_flush_bus (GstPipeline *pipeline);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPipeline, gst_object_unref)
#endif
G_END_DECLS

View file

@ -395,9 +395,7 @@ void gst_plugin_add_dependency_simple (GstPlugin * plugin,
GST_API
void gst_plugin_list_free (GList *list);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPlugin, gst_object_unref)
#endif
G_END_DECLS

View file

@ -155,9 +155,7 @@ GST_API
gint gst_plugin_feature_rank_compare_func (gconstpointer p1,
gconstpointer p2);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPluginFeature, gst_object_unref)
#endif
G_END_DECLS

View file

@ -124,9 +124,7 @@ gst_promise_unref (GstPromise * promise)
gst_mini_object_unref (GST_MINI_OBJECT_CAST (promise));
}
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPromise, gst_promise_unref)
#endif
G_END_DECLS

View file

@ -702,9 +702,7 @@ void gst_query_set_bitrate (GstQuery * query, guint nomi
GST_API
void gst_query_parse_bitrate (GstQuery * query, guint * nominal_bitrate);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstQuery, gst_query_unref)
#endif
G_END_DECLS

View file

@ -124,9 +124,7 @@ gboolean gst_registry_check_feature_version (GstRegistry *registr
guint min_minor,
guint min_micro);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRegistry, gst_object_unref)
#endif
G_END_DECLS

View file

@ -204,9 +204,7 @@ gst_sample_copy (const GstSample * buf)
*/
#define gst_value_get_sample(v) GST_SAMPLE_CAST (g_value_get_boxed(v))
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstSample, gst_sample_unref)
#endif
G_END_DECLS

View file

@ -281,9 +281,7 @@ gboolean gst_segment_do_seek (GstSegment * segment, gdouble rate
GST_API
gboolean gst_segment_is_equal (const GstSegment * s0, const GstSegment * s1);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstSegment, gst_segment_free)
#endif
G_END_DECLS

View file

@ -112,9 +112,7 @@ GST_API
gboolean gst_stream_collection_add_stream (GstStreamCollection *collection,
GstStream *stream);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstStreamCollection, gst_object_unref)
#endif
G_END_DECLS

View file

@ -152,9 +152,7 @@ GstCaps * gst_stream_get_caps (GstStream *stream);
GST_API
const gchar * gst_stream_type_get_name (GstStreamType stype);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstStream, gst_object_unref)
#endif
G_END_DECLS

View file

@ -371,9 +371,7 @@ GST_API
GstStructure * gst_structure_intersect (const GstStructure * struct1,
const GstStructure * struct2) G_GNUC_MALLOC;
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstStructure, gst_structure_free)
#endif
G_END_DECLS

View file

@ -87,9 +87,7 @@ GstClock* gst_system_clock_obtain (void);
GST_API
void gst_system_clock_set_default (GstClock *new_clock);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstSystemClock, gst_object_unref)
#endif
G_END_DECLS

View file

@ -1181,9 +1181,7 @@ gst_tag_list_take (GstTagList **old_taglist, GstTagList *new_taglist)
*/
#define GST_TAG_PRIVATE_DATA "private-data"
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagList, gst_tag_list_unref)
#endif
G_END_DECLS

View file

@ -210,9 +210,7 @@ gboolean gst_task_pause (GstTask *task);
GST_API
gboolean gst_task_join (GstTask *task);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTask, gst_object_unref)
#endif
G_END_DECLS

View file

@ -103,9 +103,7 @@ void gst_task_pool_join (GstTaskPool *pool, gpointer id);
GST_API
void gst_task_pool_cleanup (GstTaskPool *pool);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTaskPool, gst_object_unref)
#endif
G_END_DECLS

View file

@ -228,7 +228,6 @@ GstTocEntry * gst_toc_entry_get_parent (GstTocEntry *entry);
GST_API
const gchar * gst_toc_entry_type_get_nick (GstTocEntryType type);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
static inline void
_gst_autoptr_toc_unref (GstToc *toc)
{
@ -243,7 +242,6 @@ _gst_autoptr_toc_entry_unref (GstTocEntry *entry)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstToc, _gst_autoptr_toc_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTocEntry, _gst_autoptr_toc_entry_unref)
#endif
G_END_DECLS

View file

@ -76,9 +76,7 @@ gboolean gst_tracer_register (GstPlugin * plugin, const gchar * name, GType type
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTracer, gst_object_unref)
#endif
G_END_DECLS

View file

@ -57,9 +57,7 @@ GList * gst_tracer_factory_get_list (void);
GST_API
GType gst_tracer_factory_get_tracer_type (GstTracerFactory * factory);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTracerFactory, gst_object_unref)
#endif
G_END_DECLS

View file

@ -45,9 +45,7 @@ typedef struct _GstTracerRecordClass GstTracerRecordClass;
GST_API
GType gst_tracer_record_get_type (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTracerRecord, gst_object_unref)
#endif
/**
* GstTracerValueScope:

View file

@ -65,9 +65,7 @@ GST_API
void gst_type_find_factory_call_function (GstTypeFindFactory *factory,
GstTypeFind *find);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTypeFindFactory, gst_object_unref)
#endif
G_END_DECLS

View file

@ -414,9 +414,7 @@ gst_clear_uri (GstUri ** uri_ptr)
gst_clear_mini_object ((GstMiniObject **) uri_ptr);
}
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstUri, gst_uri_unref)
#endif
G_END_DECLS

View file

@ -142,9 +142,7 @@ GST_BASE_API
gssize gst_adapter_masked_scan_uint32_peek (GstAdapter * adapter, guint32 mask,
guint32 pattern, gsize offset, gsize size, guint32 * value);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAdapter, gst_object_unref)
#endif
G_END_DECLS

View file

@ -366,9 +366,7 @@ GstClockTime gst_aggregator_simple_get_next_time (GstAggregator
G_END_DECLS
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAggregator, gst_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAggregatorPad, gst_object_unref)
#endif
#endif /* __GST_AGGREGATOR_H__ */

View file

@ -361,13 +361,9 @@ void gst_base_parse_merge_tags (GstBaseParse * parse,
GstTagList * tags,
GstTagMergeMode mode);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBaseParseFrame, gst_base_parse_frame_free)
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBaseParse, gst_object_unref)
#endif
G_END_DECLS

View file

@ -327,9 +327,7 @@ GstFlowReturn gst_base_sink_wait (GstBaseSink *sink, GstClockTime
GST_BASE_API
GstStructure *gst_base_sink_get_stats (GstBaseSink * sink);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBaseSink, gst_object_unref)
#endif
G_END_DECLS

View file

@ -315,9 +315,7 @@ GST_BASE_API
void gst_base_src_submit_buffer_list (GstBaseSrc * src,
GstBufferList * buffer_list);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBaseSrc, gst_object_unref)
#endif
G_END_DECLS

View file

@ -350,9 +350,7 @@ GST_BASE_API
gboolean gst_base_transform_update_src_caps (GstBaseTransform *trans,
GstCaps *updated_caps);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstBaseTransform, gst_object_unref)
#endif
G_END_DECLS

View file

@ -449,9 +449,7 @@ gboolean gst_collect_pads_query_default (GstCollectPads * pads, GstCollec
GstQuery * query, gboolean discard);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstCollectPads, gst_object_unref)
#endif
G_END_DECLS

View file

@ -177,9 +177,7 @@ void gst_data_queue_get_level (GstDataQueue * queue, GstDataQueue
GST_BASE_API
void gst_data_queue_limits_changed (GstDataQueue * queue);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDataQueue, gst_object_unref)
#endif
G_END_DECLS

View file

@ -75,9 +75,7 @@ void gst_flow_combiner_reset (GstFlowCombiner * combiner);
GST_BASE_API
GType gst_flow_combiner_get_type (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstFlowCombiner, gst_flow_combiner_free)
#endif
G_END_DECLS

View file

@ -85,9 +85,7 @@ struct _GstPushSrcClass {
GST_BASE_API
GType gst_push_src_get_type (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPushSrc, gst_object_unref)
#endif
G_END_DECLS

View file

@ -137,9 +137,7 @@ GstClockTime gst_test_clock_id_list_get_latest_time (const GList * pending_list
GST_CHECK_API
gboolean gst_test_clock_crank (GstTestClock * test_clock);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTestClock, gst_object_unref)
#endif
G_END_DECLS

View file

@ -96,9 +96,7 @@ GstControlBinding * gst_argb_control_binding_new (GstObject * object, const gc
GstControlSource * cs_a, GstControlSource * cs_r,
GstControlSource * cs_g, GstControlSource * cs_b);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstARGBControlBinding, gst_object_unref)
#endif
G_END_DECLS

View file

@ -122,9 +122,7 @@ GST_CONTROLLER_API
GstControlBinding * gst_direct_control_binding_new_absolute (GstObject * object, const gchar * property_name,
GstControlSource * cs);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDirectControlBinding, gst_object_unref)
#endif
G_END_DECLS

View file

@ -97,9 +97,7 @@ GType gst_interpolation_control_source_get_type (void);
GST_CONTROLLER_API
GstControlSource * gst_interpolation_control_source_new (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstInterpolationControlSource, gst_object_unref)
#endif
G_END_DECLS

View file

@ -95,9 +95,7 @@ GType gst_lfo_control_source_get_type (void);
GST_CONTROLLER_API
GstControlSource *gst_lfo_control_source_new (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstLFOControlSource, gst_object_unref)
#endif
G_END_DECLS

View file

@ -79,9 +79,7 @@ GstControlBinding * gst_proxy_control_binding_new (GstObject * object,
GstObject * ref_object,
const gchar * ref_property_name);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstProxyControlBinding, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_PROXY_CONTROL_BINDING_H__ */

View file

@ -153,9 +153,7 @@ void gst_control_point_free (GstControlPoint * cp);
GST_CONTROLLER_API
GstControlPoint * gst_control_point_copy (GstControlPoint * cp);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTimedValueControlSource, gst_object_unref)
#endif
G_END_DECLS

View file

@ -80,9 +80,7 @@ GType gst_trigger_control_source_get_type (void);
GST_CONTROLLER_API
GstControlSource *gst_trigger_control_source_new (void);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTriggerControlSource, gst_object_unref)
#endif
G_END_DECLS

View file

@ -97,13 +97,9 @@ GST_NET_API
GstClock* gst_ntp_clock_new (const gchar *name, const gchar *remote_address,
gint remote_port, GstClockTime base_time);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNetClientClock, gst_object_unref)
#endif
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNtpClock, gst_object_unref)
#endif
G_END_DECLS

View file

@ -73,9 +73,7 @@ gboolean gst_net_time_packet_send (const GstNetTimePacket
GSocketAddress * dest_address,
GError ** error);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNetTimePacket, gst_net_time_packet_free)
#endif
G_END_DECLS

View file

@ -71,9 +71,7 @@ GstNetTimeProvider* gst_net_time_provider_new (GstClock *clock,
const gchar *address,
gint port);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstNetTimeProvider, gst_object_unref)
#endif
G_END_DECLS

View file

@ -153,9 +153,7 @@ GST_NET_API
GstClock* gst_ptp_clock_new (const gchar *name,
guint domain);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPtpClock, gst_object_unref)
#endif
G_END_DECLS