From 888e6a91a406f9de28abbad62fc3a22e0fa9b0b6 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 26 Aug 2011 12:37:43 +0100 Subject: [PATCH 01/25] basetransform: Use GstPadDirection in the query vfunc Wim suggested that using GstPadDirection instead of a GstPad in the arguments to the new query vfunc would be more consistent with the other functions. --- libs/gst/base/gstbasetransform.c | 10 +++++----- libs/gst/base/gstbasetransform.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/gst/base/gstbasetransform.c b/libs/gst/base/gstbasetransform.c index debeccb6d7..3325c6d0aa 100644 --- a/libs/gst/base/gstbasetransform.c +++ b/libs/gst/base/gstbasetransform.c @@ -351,7 +351,7 @@ static GstFlowReturn gst_base_transform_buffer_alloc (GstPad * pad, guint64 offset, guint size, GstCaps * caps, GstBuffer ** buf); static gboolean gst_base_transform_query (GstPad * pad, GstQuery * query); static gboolean gst_base_transform_default_query (GstBaseTransform * trans, - GstPad * pad, GstQuery * query); + GstPadDirection direction, GstQuery * query); static const GstQueryType *gst_base_transform_query_type (GstPad * pad); /* static guint gst_base_transform_signals[LAST_SIGNAL] = { 0 }; */ @@ -1238,12 +1238,12 @@ failed_configure: static gboolean gst_base_transform_default_query (GstBaseTransform * trans, - GstPad * pad, GstQuery * query) + GstPadDirection direction, GstQuery * query) { gboolean ret = FALSE; GstPad *otherpad; - otherpad = (pad == trans->srcpad) ? trans->sinkpad : trans->srcpad; + otherpad = (direction == GST_PAD_SRC) ? trans->sinkpad : trans->srcpad; switch (GST_QUERY_TYPE (query)) { case GST_QUERY_POSITION:{ @@ -1254,7 +1254,7 @@ gst_base_transform_default_query (GstBaseTransform * trans, gint64 pos; ret = TRUE; - if ((pad == trans->sinkpad) + if ((direction == GST_PAD_SINK) || (trans->priv->last_stop_out == GST_CLOCK_TIME_NONE)) { pos = gst_segment_to_stream_time (&trans->segment, GST_FORMAT_TIME, @@ -1291,7 +1291,7 @@ gst_base_transform_query (GstPad * pad, GstQuery * query) bclass = GST_BASE_TRANSFORM_GET_CLASS (trans); if (bclass->query) - ret = bclass->query (trans, pad, query); + ret = bclass->query (trans, GST_PAD_DIRECTION (pad), query); else ret = gst_pad_query_default (pad, query); diff --git a/libs/gst/base/gstbasetransform.h b/libs/gst/base/gstbasetransform.h index 8914260e44..84dd0aff46 100644 --- a/libs/gst/base/gstbasetransform.h +++ b/libs/gst/base/gstbasetransform.h @@ -246,8 +246,8 @@ struct _GstBaseTransformClass { void (*before_transform) (GstBaseTransform *trans, GstBuffer *buffer); gboolean (*accept_caps) (GstBaseTransform *trans, GstPadDirection direction, - GstCaps *caps); - gboolean (*query) (GstBaseTransform *trans, GstPad *pad, GstQuery *query); + gboolean (*query) (GstBaseTransform * trans, GstPadDirection direction, + GstQuery * query); /*< private >*/ gpointer _gst_reserved[GST_PADDING_LARGE - 4]; From 0c0dc0441fd9a6c084892cb8064c4ece5295aac9 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Fri, 26 Aug 2011 13:02:34 +0100 Subject: [PATCH 02/25] basetransform: Fix bodged previous commit --- libs/gst/base/gstbasetransform.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/gst/base/gstbasetransform.h b/libs/gst/base/gstbasetransform.h index 84dd0aff46..485e484067 100644 --- a/libs/gst/base/gstbasetransform.h +++ b/libs/gst/base/gstbasetransform.h @@ -246,6 +246,7 @@ struct _GstBaseTransformClass { void (*before_transform) (GstBaseTransform *trans, GstBuffer *buffer); gboolean (*accept_caps) (GstBaseTransform *trans, GstPadDirection direction, + GstCaps *caps); gboolean (*query) (GstBaseTransform * trans, GstPadDirection direction, GstQuery * query); From 11e287529d507a66d09533b25d34fe2a55b57118 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Tue, 16 Aug 2011 22:29:59 +0200 Subject: [PATCH 03/25] format: use GST_FORMAT_UNDEFINED and few casts to GstFormat Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstformat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/gstformat.c b/gst/gstformat.c index 263fa1d307..e3bbba945c 100644 --- a/gst/gstformat.c +++ b/gst/gstformat.c @@ -49,7 +49,7 @@ static GstFormatDefinition standard_definitions[] = { {GST_FORMAT_TIME, "time", "Time", 0}, {GST_FORMAT_BUFFERS, "buffers", "Buffers", 0}, {GST_FORMAT_PERCENT, "percent", "Percent", 0}, - {0, NULL, NULL, 0} + {GST_FORMAT_UNDEFINED, NULL, NULL, 0} }; void @@ -144,8 +144,8 @@ gst_format_register (const gchar * nick, const gchar * description) GstFormatDefinition *format; GstFormat query; - g_return_val_if_fail (nick != NULL, 0); - g_return_val_if_fail (description != NULL, 0); + g_return_val_if_fail (nick != NULL, GST_FORMAT_UNDEFINED); + g_return_val_if_fail (description != NULL, GST_FORMAT_UNDEFINED); query = gst_format_get_by_nick (nick); if (query != GST_FORMAT_UNDEFINED) @@ -153,7 +153,7 @@ gst_format_register (const gchar * nick, const gchar * description) g_static_mutex_lock (&mutex); format = g_slice_new (GstFormatDefinition); - format->value = _n_values; + format->value = (GstFormat) _n_values; format->nick = g_strdup (nick); format->description = g_strdup (description); format->quark = g_quark_from_static_string (format->nick); @@ -182,7 +182,7 @@ gst_format_get_by_nick (const gchar * nick) { GstFormatDefinition *format; - g_return_val_if_fail (nick != NULL, 0); + g_return_val_if_fail (nick != NULL, GST_FORMAT_UNDEFINED); g_static_mutex_lock (&mutex); format = g_hash_table_lookup (_nick_to_format, nick); From e5d00246cf964500f39e88fc435ea9ac48bad9fc Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Tue, 16 Aug 2011 22:37:08 +0200 Subject: [PATCH 04/25] index: explicitly cast to the enum type Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstindex.c b/gst/gstindex.c index 27d4b8b59d..d168eee6ce 100644 --- a/gst/gstindex.c +++ b/gst/gstindex.c @@ -253,7 +253,7 @@ gst_index_set_property (GObject * object, guint prop_id, switch (prop_id) { case ARG_RESOLVER: - index->method = g_value_get_enum (value); + index->method = (GstIndexResolverMethod) g_value_get_enum (value); index->resolver = resolvers[index->method].resolver; index->resolver_user_data = resolvers[index->method].user_data; break; From 2a6ba0b29d9a1b71fb588874f42648d20d87a090 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Tue, 16 Aug 2011 22:41:32 +0200 Subject: [PATCH 05/25] info: explicitly cast to the enum type Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstinfo.c b/gst/gstinfo.c index 50622395aa..83ab86b767 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -1480,7 +1480,7 @@ gst_debug_category_reset_threshold (GstDebugCategory * category) GstDebugLevel gst_debug_category_get_threshold (GstDebugCategory * category) { - return g_atomic_int_get (&category->threshold); + return (GstDebugLevel) g_atomic_int_get (&category->threshold); } /** From c27ce79ba1091814169b8dc6ec30fa631911fa70 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Tue, 16 Aug 2011 22:51:29 +0200 Subject: [PATCH 06/25] message: explicitly cast to the right enum types Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstmessage.c | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/gst/gstmessage.c b/gst/gstmessage.c index e6b6019b0e..ac33800ecf 100644 --- a/gst/gstmessage.c +++ b/gst/gstmessage.c @@ -1134,7 +1134,8 @@ gst_message_parse_buffering_stats (GstMessage * message, g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_BUFFERING); if (mode) - *mode = g_value_get_enum (gst_structure_id_get_value (message->structure, + *mode = (GstBufferingMode) + g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (BUFFERING_MODE))); if (avg_in) *avg_in = g_value_get_int (gst_structure_id_get_value (message->structure, @@ -1186,15 +1187,16 @@ gst_message_parse_state_changed (GstMessage * message, g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_STATE_CHANGED); if (oldstate) - *oldstate = + *oldstate = (GstState) g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (OLD_STATE))); if (newstate) - *newstate = + *newstate = (GstState) g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (NEW_STATE))); if (pending) - *pending = g_value_get_enum (gst_structure_id_get_value (message->structure, + *pending = (GstState) + g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (PENDING_STATE))); } @@ -1317,7 +1319,8 @@ gst_message_parse_structure_change (GstMessage * message, g_return_if_fail (G_VALUE_TYPE (owner_gvalue) == GST_TYPE_ELEMENT); if (type) - *type = g_value_get_enum (gst_structure_id_get_value (message->structure, + *type = (GstStructureChangeType) + g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (TYPE))); if (owner) *owner = (GstElement *) g_value_get_object (owner_gvalue); @@ -1483,7 +1486,7 @@ gst_message_parse_segment_start (GstMessage * message, GstFormat * format, g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_SEGMENT_START); if (format) - *format = + *format = (GstFormat) g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (FORMAT))); if (position) @@ -1510,7 +1513,7 @@ gst_message_parse_segment_done (GstMessage * message, GstFormat * format, g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_SEGMENT_DONE); if (format) - *format = + *format = (GstFormat) g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (FORMAT))); if (position) @@ -1540,7 +1543,7 @@ gst_message_parse_duration (GstMessage * message, GstFormat * format, g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_DURATION); if (format) - *format = + *format = (GstFormat) g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (FORMAT))); if (duration) @@ -1590,7 +1593,8 @@ gst_message_parse_request_state (GstMessage * message, GstState * state) g_return_if_fail (GST_MESSAGE_TYPE (message) == GST_MESSAGE_REQUEST_STATE); if (state) - *state = g_value_get_enum (gst_structure_id_get_value (message->structure, + *state = (GstState) + g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (NEW_STATE))); } @@ -1652,7 +1656,8 @@ gst_message_parse_stream_status (GstMessage * message, g_return_if_fail (owner_gvalue != NULL); if (type) - *type = g_value_get_enum (gst_structure_id_get_value (message->structure, + *type = (GstStreamStatusType) + g_value_get_enum (gst_structure_id_get_value (message->structure, GST_QUARK (TYPE))); if (owner) *owner = (GstElement *) g_value_get_object (owner_gvalue); From 746813344dbb6808f6c6a7b98d9e777dc930e767 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Tue, 16 Aug 2011 23:00:47 +0200 Subject: [PATCH 07/25] pad: explicitly cast to the enum type Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstpad.c | 2 +- gst/gstpad.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstpad.c b/gst/gstpad.c index 14c97863ef..cfb5681aae 100644 --- a/gst/gstpad.c +++ b/gst/gstpad.c @@ -483,7 +483,7 @@ gst_pad_set_property (GObject * object, guint prop_id, switch (prop_id) { case PAD_PROP_DIRECTION: - GST_PAD_DIRECTION (object) = g_value_get_enum (value); + GST_PAD_DIRECTION (object) = (GstPadDirection) g_value_get_enum (value); break; case PAD_PROP_TEMPLATE: gst_pad_set_pad_template (GST_PAD_CAST (object), diff --git a/gst/gstpad.h b/gst/gstpad.h index 5317dee41c..86152bf9f9 100644 --- a/gst/gstpad.h +++ b/gst/gstpad.h @@ -228,7 +228,7 @@ typedef enum { * * Since: 0.10.30 */ -#define GST_PAD_LINK_CHECK_DEFAULT (GST_PAD_LINK_CHECK_HIERARCHY | GST_PAD_LINK_CHECK_CAPS) +#define GST_PAD_LINK_CHECK_DEFAULT ((GstPadLinkCheck) (GST_PAD_LINK_CHECK_HIERARCHY | GST_PAD_LINK_CHECK_CAPS)) /** * GstActivateMode: From 480d415419367d92957af552e5fbc01a24f052c0 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 21:03:53 +0200 Subject: [PATCH 08/25] padtemplate: explicitly cast to the enum types Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstpadtemplate.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/gstpadtemplate.c b/gst/gstpadtemplate.c index 44dd9039ef..116cd77a45 100644 --- a/gst/gstpadtemplate.c +++ b/gst/gstpadtemplate.c @@ -431,10 +431,12 @@ gst_pad_template_set_property (GObject * object, guint prop_id, GST_PAD_TEMPLATE_NAME_TEMPLATE (object) = g_value_dup_string (value); break; case PROP_DIRECTION: - GST_PAD_TEMPLATE_DIRECTION (object) = g_value_get_enum (value); + GST_PAD_TEMPLATE_DIRECTION (object) = + (GstPadDirection) g_value_get_enum (value); break; case PROP_PRESENCE: - GST_PAD_TEMPLATE_PRESENCE (object) = g_value_get_enum (value); + GST_PAD_TEMPLATE_PRESENCE (object) = + (GstPadPresence) g_value_get_enum (value); break; case PROP_CAPS: /* allow caps == NULL for backwards compatibility (ie. g_object_new() From ec157ebed914310c47bb5911af5030d25b08c452 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 21:18:15 +0200 Subject: [PATCH 09/25] query: minor changes related to enum types Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstquery.c | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/gst/gstquery.c b/gst/gstquery.c index 4104e0afa3..c917c04760 100644 --- a/gst/gstquery.c +++ b/gst/gstquery.c @@ -96,7 +96,7 @@ static GstQueryTypeDefinition standard_definitions[] = { {GST_QUERY_BUFFERING, "buffering", "Buffering status", 0}, {GST_QUERY_CUSTOM, "custom", "Custom query", 0}, {GST_QUERY_URI, "uri", "URI of the source or sink", 0}, - {0, NULL, NULL, 0} + {GST_QUERY_NONE, NULL, NULL, 0} }; void @@ -233,15 +233,15 @@ gst_query_type_register (const gchar * nick, const gchar * description) GstQueryTypeDefinition *query; GstQueryType lookup; - g_return_val_if_fail (nick != NULL, 0); - g_return_val_if_fail (description != NULL, 0); + g_return_val_if_fail (nick != NULL, GST_QUERY_NONE); + g_return_val_if_fail (description != NULL, GST_QUERY_NONE); lookup = gst_query_type_get_by_nick (nick); if (lookup != GST_QUERY_NONE) return lookup; query = g_slice_new (GstQueryTypeDefinition); - query->value = _n_values; + query->value = (GstQueryType) _n_values; query->nick = g_strdup (nick); query->description = g_strdup (description); query->quark = g_quark_from_static_string (query->nick); @@ -271,7 +271,7 @@ gst_query_type_get_by_nick (const gchar * nick) { GstQueryTypeDefinition *query; - g_return_val_if_fail (nick != NULL, 0); + g_return_val_if_fail (nick != NULL, GST_QUERY_NONE); g_static_mutex_lock (&mutex); query = g_hash_table_lookup (_nick_to_query, nick); @@ -439,7 +439,8 @@ gst_query_parse_position (GstQuery * query, GstFormat * format, gint64 * cur) structure = query->structure; if (format) - *format = g_value_get_enum (gst_structure_id_get_value (structure, + *format = + (GstFormat) g_value_get_enum (gst_structure_id_get_value (structure, GST_QUARK (FORMAT))); if (cur) *cur = g_value_get_int64 (gst_structure_id_get_value (structure, @@ -512,7 +513,8 @@ gst_query_parse_duration (GstQuery * query, GstFormat * format, structure = query->structure; if (format) - *format = g_value_get_enum (gst_structure_id_get_value (structure, + *format = + (GstFormat) g_value_get_enum (gst_structure_id_get_value (structure, GST_QUARK (FORMAT))); if (duration) *duration = g_value_get_int64 (gst_structure_id_get_value (structure, @@ -683,13 +685,15 @@ gst_query_parse_convert (GstQuery * query, GstFormat * src_format, structure = query->structure; if (src_format) - *src_format = g_value_get_enum (gst_structure_id_get_value (structure, + *src_format = + (GstFormat) g_value_get_enum (gst_structure_id_get_value (structure, GST_QUARK (SRC_FORMAT))); if (src_value) *src_value = g_value_get_int64 (gst_structure_id_get_value (structure, GST_QUARK (SRC_VALUE))); if (dest_format) - *dest_format = g_value_get_enum (gst_structure_id_get_value (structure, + *dest_format = + (GstFormat) g_value_get_enum (gst_structure_id_get_value (structure, GST_QUARK (DEST_FORMAT))); if (dest_value) *dest_value = g_value_get_int64 (gst_structure_id_get_value (structure, @@ -785,7 +789,8 @@ gst_query_parse_segment (GstQuery * query, gdouble * rate, GstFormat * format, *rate = g_value_get_double (gst_structure_id_get_value (structure, GST_QUARK (RATE))); if (format) - *format = g_value_get_enum (gst_structure_id_get_value (structure, + *format = + (GstFormat) g_value_get_enum (gst_structure_id_get_value (structure, GST_QUARK (FORMAT))); if (start_value) *start_value = g_value_get_int64 (gst_structure_id_get_value (structure, @@ -908,7 +913,8 @@ gst_query_parse_seeking (GstQuery * query, GstFormat * format, structure = query->structure; if (format) - *format = g_value_get_enum (gst_structure_id_get_value (structure, + *format = + (GstFormat) g_value_get_enum (gst_structure_id_get_value (structure, GST_QUARK (FORMAT))); if (seekable) *seekable = g_value_get_boolean (gst_structure_id_get_value (structure, @@ -1068,7 +1074,8 @@ gst_query_parse_formats_nth (GstQuery * query, guint nth, GstFormat * format) *format = GST_FORMAT_UNDEFINED; } else { if (nth < gst_value_list_get_size (list)) { - *format = g_value_get_enum (gst_value_list_get_value (list, nth)); + *format = + (GstFormat) g_value_get_enum (gst_value_list_get_value (list, nth)); } else *format = GST_FORMAT_UNDEFINED; } @@ -1205,7 +1212,8 @@ gst_query_parse_buffering_stats (GstQuery * query, g_return_if_fail (GST_QUERY_TYPE (query) == GST_QUERY_BUFFERING); if (mode) - *mode = g_value_get_enum (gst_structure_id_get_value (query->structure, + *mode = (GstBufferingMode) + g_value_get_enum (gst_structure_id_get_value (query->structure, GST_QUARK (BUFFERING_MODE))); if (avg_in) *avg_in = g_value_get_int (gst_structure_id_get_value (query->structure, @@ -1271,7 +1279,8 @@ gst_query_parse_buffering_range (GstQuery * query, GstFormat * format, structure = query->structure; if (format) - *format = g_value_get_enum (gst_structure_id_get_value (structure, + *format = + (GstFormat) g_value_get_enum (gst_structure_id_get_value (structure, GST_QUARK (FORMAT))); if (start) *start = g_value_get_int64 (gst_structure_id_get_value (structure, From 9f8fe424c740700d70a7da6fe8a93c206a33f199 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 21:25:46 +0200 Subject: [PATCH 10/25] registrychunks: explicitly cast to the enum types Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstregistrychunks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstregistrychunks.c b/gst/gstregistrychunks.c index 4556eb42e2..98cff900af 100644 --- a/gst/gstregistrychunks.c +++ b/gst/gstregistrychunks.c @@ -518,7 +518,7 @@ gst_registry_chunks_load_pad_template (GstElementFactory * factory, gchar ** in, template = g_slice_new (GstStaticPadTemplate); template->presence = pt->presence; - template->direction = pt->direction; + template->direction = (GstPadDirection) pt->direction; template->static_caps.caps.refcount = 0; /* unpack pad template strings */ @@ -758,7 +758,7 @@ gst_registry_chunks_load_plugin_dep (GstPlugin * plugin, gchar ** in, dep->env_hash = d->env_hash; dep->stat_hash = d->stat_hash; - dep->flags = d->flags; + dep->flags = (GstPluginDependencyFlags) d->flags; dep->names = gst_registry_chunks_load_plugin_dep_strv (in, end, d->n_names); dep->paths = gst_registry_chunks_load_plugin_dep_strv (in, end, d->n_paths); From c0b0b977d7996be5fa6837644a264ad82be0aaf6 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 21:30:57 +0200 Subject: [PATCH 11/25] segment: use GST_SEEK_FLAG_NONE instead of 0 Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstsegment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstsegment.c b/gst/gstsegment.c index a70e8e6195..0b090a3b46 100644 --- a/gst/gstsegment.c +++ b/gst/gstsegment.c @@ -173,7 +173,7 @@ gst_segment_init (GstSegment * segment, GstFormat format) segment->abs_rate = 1.0; segment->applied_rate = 1.0; segment->format = format; - segment->flags = 0; + segment->flags = GST_SEEK_FLAG_NONE; segment->start = 0; segment->stop = -1; segment->time = 0; From 95b96b57a25a5e9745cee0fef543f2061c630579 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 21:49:29 +0200 Subject: [PATCH 12/25] tagsetter: use GST_TAG_MERGE_UNDEFINED instead of FALSE Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstsystemclock.c | 4 ++-- gst/gsttagsetter.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/gstsystemclock.c b/gst/gstsystemclock.c index 938704e544..ef691fd17d 100644 --- a/gst/gstsystemclock.c +++ b/gst/gstsystemclock.c @@ -55,7 +55,7 @@ # define EWOULDBLOCK EAGAIN /* This is just to placate gcc */ #endif /* G_OS_WIN32 */ -#define GET_ENTRY_STATUS(e) (g_atomic_int_get(&GST_CLOCK_ENTRY_STATUS(e))) +#define GET_ENTRY_STATUS(e) ((GstClockReturn) g_atomic_int_get(&GST_CLOCK_ENTRY_STATUS(e))) #define SET_ENTRY_STATUS(e,val) (g_atomic_int_set(&GST_CLOCK_ENTRY_STATUS(e),(val))) #define CAS_ENTRY_STATUS(e,old,val) (G_ATOMIC_INT_COMPARE_AND_EXCHANGE(\ (&GST_CLOCK_ENTRY_STATUS(e)), (old), (val))) @@ -237,7 +237,7 @@ gst_system_clock_set_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_CLOCK_TYPE: - sysclock->priv->clock_type = g_value_get_enum (value); + sysclock->priv->clock_type = (GstClockType) g_value_get_enum (value); GST_CAT_DEBUG (GST_CAT_CLOCK, "clock-type set to %d", sysclock->priv->clock_type); break; diff --git a/gst/gsttagsetter.c b/gst/gsttagsetter.c index 5f15e41213..d08d7e8839 100644 --- a/gst/gsttagsetter.c +++ b/gst/gsttagsetter.c @@ -412,7 +412,7 @@ gst_tag_setter_get_tag_merge_mode (GstTagSetter * setter) GstTagMergeMode mode; GstTagData *data; - g_return_val_if_fail (GST_IS_TAG_SETTER (setter), FALSE); + g_return_val_if_fail (GST_IS_TAG_SETTER (setter), GST_TAG_MERGE_UNDEFINED); data = gst_tag_setter_get_data (setter); From 97442ad1a3588ece9c21e925b4d831ed492de3a0 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 21:52:05 +0200 Subject: [PATCH 13/25] task: explicitly cast to the enum type Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gsttask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gsttask.c b/gst/gsttask.c index dbfd3bf7ab..e06e0d6917 100644 --- a/gst/gsttask.c +++ b/gst/gsttask.c @@ -83,7 +83,7 @@ GST_DEBUG_CATEGORY_STATIC (task_debug); #define GST_CAT_DEFAULT (task_debug) #define SET_TASK_STATE(t,s) (g_atomic_int_set (&GST_TASK_STATE(t), (s))) -#define GET_TASK_STATE(t) (g_atomic_int_get (&GST_TASK_STATE(t))) +#define GET_TASK_STATE(t) ((GstTaskState) g_atomic_int_get (&GST_TASK_STATE(t))) #define GST_TASK_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE ((obj), GST_TYPE_TASK, GstTaskPrivate)) From c0749e7762ac0f01c33dd7c00bddd88f551e1c9a Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 22:05:26 +0200 Subject: [PATCH 14/25] trace: add GST_ALLOC_TRACE_NONE for consistency and use it Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gsttrace.c | 2 +- gst/gsttrace.h | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gst/gsttrace.c b/gst/gsttrace.c index 0a176c32d0..b857458b81 100644 --- a/gst/gsttrace.c +++ b/gst/gsttrace.c @@ -262,7 +262,7 @@ _gst_trace_add_entry (GstTrace * trace, guint32 seq, guint32 data, gchar * msg) /* global flags */ -static GstAllocTraceFlags _gst_trace_flags = 0; +static GstAllocTraceFlags _gst_trace_flags = GST_ALLOC_TRACE_NONE; /* list of registered tracers */ static GList *_gst_alloc_tracers = NULL; diff --git a/gst/gsttrace.h b/gst/gsttrace.h index 1de63faaeb..1882762339 100644 --- a/gst/gsttrace.h +++ b/gst/gsttrace.h @@ -30,13 +30,15 @@ G_BEGIN_DECLS /** * GstAllocTraceFlags: - * @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory - * @GST_ALLOC_TRACE_MEM_LIVE: trace pointers of unfreed memory + * @GST_ALLOC_TRACE_NONE: No tracing specified or desired. + * @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory. + * @GST_ALLOC_TRACE_MEM_LIVE: Trace pointers of unfreed memory. * * Flags indicating which tracing feature to enable. */ typedef enum { - GST_ALLOC_TRACE_LIVE = (1 << 0), + GST_ALLOC_TRACE_NONE = 0, + GST_ALLOC_TRACE_LIVE = (1 << 0), GST_ALLOC_TRACE_MEM_LIVE = (1 << 1) } GstAllocTraceFlags; From b57683d258c1865f92e861c1cb8cca0bf564d841 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 22:29:45 +0200 Subject: [PATCH 15/25] utils: minor changes related to enum types Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gstutils.c b/gst/gstutils.c index 0d0558262a..7fded3ef00 100644 --- a/gst/gstutils.c +++ b/gst/gstutils.c @@ -2703,7 +2703,7 @@ gst_element_class_install_std_props (GstElementClass * klass, while (name) { int arg_id = va_arg (args, int); - int flags = va_arg (args, int); + GParamFlags flags = (GParamFlags) va_arg (args, int); gst_element_populate_std_props ((GObjectClass *) klass, name, arg_id, flags); @@ -3766,7 +3766,7 @@ gst_parse_bin_from_description (const gchar * bin_description, gboolean ghost_unlinked_pads, GError ** err) { return gst_parse_bin_from_description_full (bin_description, - ghost_unlinked_pads, NULL, 0, err); + ghost_unlinked_pads, NULL, GST_PARSE_FLAG_NONE, err); } /** From b26c5b99f2d93d92c5035d0be69effaef7146a52 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 22:42:08 +0200 Subject: [PATCH 16/25] value: explicitly cast to the enum type Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstvalue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gstvalue.c b/gst/gstvalue.c index 3817160941..f2d6a566e5 100644 --- a/gst/gstvalue.c +++ b/gst/gstvalue.c @@ -2388,7 +2388,7 @@ gst_value_serialize_enum (const GValue * value) if (G_UNLIKELY (en == NULL && G_VALUE_TYPE (value) == GST_TYPE_FORMAT)) { const GstFormatDefinition *format_def; - format_def = gst_format_get_details (g_value_get_enum (value)); + format_def = gst_format_get_details ((GstFormat) g_value_get_enum (value)); g_return_val_if_fail (format_def != NULL, NULL); return g_strdup (format_def->description); } From 1db007e5bb9dfaba07cd0fdb7a86cd7cb701f650 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 22:48:54 +0200 Subject: [PATCH 17/25] parse: use GST_PARSE_FLAG_NONE instead of 0 Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gstparse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/gstparse.c b/gst/gstparse.c index 80a169eb0c..839d08eaac 100644 --- a/gst/gstparse.c +++ b/gst/gstparse.c @@ -223,7 +223,7 @@ _gst_parse_escape (const gchar * str) GstElement * gst_parse_launchv (const gchar ** argv, GError ** error) { - return gst_parse_launchv_full (argv, NULL, 0, error); + return gst_parse_launchv_full (argv, NULL, GST_PARSE_FLAG_NONE, error); } /** @@ -299,7 +299,8 @@ gst_parse_launchv_full (const gchar ** argv, GstParseContext * context, GstElement * gst_parse_launch (const gchar * pipeline_description, GError ** error) { - return gst_parse_launch_full (pipeline_description, NULL, 0, error); + return gst_parse_launch_full (pipeline_description, NULL, GST_PARSE_FLAG_NONE, + error); } /** From ab3c6173b3c428e186900e1bcab8a2e4042d7e9b Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 23:06:56 +0200 Subject: [PATCH 18/25] baseparse: put the arguments of g_return_val_if_fail in the proper order --- libs/gst/base/gstbaseparse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index a5a2cd00bd..d2c0da5bd3 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -3289,9 +3289,9 @@ gst_base_parse_find_frame (GstBaseParse * parse, gint64 * pos, GstBuffer *buf = NULL; GstBaseParseFrame frame; - g_return_val_if_fail (GST_FLOW_ERROR, pos != NULL); - g_return_val_if_fail (GST_FLOW_ERROR, time != NULL); - g_return_val_if_fail (GST_FLOW_ERROR, duration != NULL); + g_return_val_if_fail (pos != NULL, GST_FLOW_ERROR); + g_return_val_if_fail (time != NULL, GST_FLOW_ERROR); + g_return_val_if_fail (duration != NULL, GST_FLOW_ERROR); klass = GST_BASE_PARSE_GET_CLASS (parse); From 81794a42486301b1afa3b41442701f825e789db7 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 23:26:08 +0200 Subject: [PATCH 19/25] baseparse: use the enum values for 0 and don't abuse on gboolean coincidence Fixes warning #188: enumerated type mixed with another type reported by ICC. --- libs/gst/base/gstbaseparse.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/gst/base/gstbaseparse.c b/libs/gst/base/gstbaseparse.c index d2c0da5bd3..67e380a25b 100644 --- a/libs/gst/base/gstbaseparse.c +++ b/libs/gst/base/gstbaseparse.c @@ -216,7 +216,7 @@ static const GstFormat fmtlist[] = { GST_FORMAT_DEFAULT, GST_FORMAT_BYTES, GST_FORMAT_TIME, - 0 + GST_FORMAT_UNDEFINED }; #define GST_BASE_PARSE_GET_PRIVATE(obj) \ @@ -3123,7 +3123,7 @@ gst_base_parse_get_querytypes (GstPad * pad) GST_QUERY_FORMATS, GST_QUERY_SEEKING, GST_QUERY_CONVERT, - 0 + GST_QUERY_NONE }; return list; @@ -3735,6 +3735,7 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event) } else { GstEvent *new_event; GstBaseParseSeek *seek; + GstSeekFlags flags = (flush ? GST_SEEK_FLAG_FLUSH : GST_SEEK_FLAG_NONE); /* The only thing we need to do in PUSH-mode is to send the seek event (in bytes) to upstream. Segment / flush handling happens @@ -3742,7 +3743,7 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event) GST_DEBUG_OBJECT (parse, "seek in PUSH mode"); if (seekstop >= 0 && seekpos <= seekpos) seekstop = seekpos; - new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flush, + new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flags, GST_SEEK_TYPE_SET, seekpos, stop_type, seekstop); /* store segment info so its precise details can be reconstructed when From 306e317ae92d80f617d914fe137109042377fe59 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 23:49:38 +0200 Subject: [PATCH 20/25] typefind: add GST_TYPE_FIND_NONE and use it Fixes warning #188: enumerated type mixed with another type reported by ICC. --- gst/gsttypefind.h | 2 ++ libs/gst/base/gsttypefindhelper.c | 14 ++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/gst/gsttypefind.h b/gst/gsttypefind.h index 6e1f049786..67ee0bedaa 100644 --- a/gst/gsttypefind.h +++ b/gst/gsttypefind.h @@ -44,6 +44,7 @@ typedef void (* GstTypeFindFunction) (GstTypeFind *find, gpointer data); /** * GstTypeFindProbability: + * @GST_TYPE_FIND_NONE: type undetected * @GST_TYPE_FIND_MINIMUM: unlikely typefind * @GST_TYPE_FIND_POSSIBLE: possible type detected * @GST_TYPE_FIND_LIKELY: likely a type was detected @@ -54,6 +55,7 @@ typedef void (* GstTypeFindFunction) (GstTypeFind *find, gpointer data); * in doing a reliable typefind. */ typedef enum { + GST_TYPE_FIND_NONE = 0, GST_TYPE_FIND_MINIMUM = 1, GST_TYPE_FIND_POSSIBLE = 50, GST_TYPE_FIND_LIKELY = 80, diff --git a/libs/gst/base/gsttypefindhelper.c b/libs/gst/base/gsttypefindhelper.c index 8695b92917..05f4bd5e70 100644 --- a/libs/gst/base/gsttypefindhelper.c +++ b/libs/gst/base/gsttypefindhelper.c @@ -51,7 +51,7 @@ typedef struct guint64 size; guint64 last_offset; GstTypeFindHelperGetRangeFunction func; - guint best_probability; + GstTypeFindProbability best_probability; GstCaps *caps; GstTypeFindFactory *factory; /* for logging */ GstObject *obj; /* for logging */ @@ -185,7 +185,8 @@ error: * If given @probability is higher, replace previously store caps. */ static void -helper_find_suggest (gpointer data, guint probability, const GstCaps * caps) +helper_find_suggest (gpointer data, GstTypeFindProbability probability, + const GstCaps * caps) { GstTypeFindHelper *helper = (GstTypeFindHelper *) data; @@ -263,7 +264,7 @@ gst_type_find_helper_get_range_ext (GstObject * obj, helper.size = size; helper.last_offset = 0; helper.func = func; - helper.best_probability = 0; + helper.best_probability = GST_TYPE_FIND_NONE; helper.caps = NULL; helper.obj = obj; @@ -408,7 +409,7 @@ typedef struct { guint8 *data; /* buffer data */ guint size; - guint best_probability; + GstTypeFindProbability best_probability; GstCaps *caps; GstTypeFindFactory *factory; /* for logging */ GstObject *obj; /* for logging */ @@ -458,7 +459,8 @@ buf_helper_find_peek (gpointer data, gint64 off, guint size) * If given @probability is higher, replace previously store caps. */ static void -buf_helper_find_suggest (gpointer data, guint probability, const GstCaps * caps) +buf_helper_find_suggest (gpointer data, GstTypeFindProbability probability, + const GstCaps * caps) { GstTypeFindBufHelper *helper = (GstTypeFindBufHelper *) data; @@ -516,7 +518,7 @@ gst_type_find_helper_for_buffer (GstObject * obj, GstBuffer * buf, helper.data = GST_BUFFER_DATA (buf); helper.size = GST_BUFFER_SIZE (buf); - helper.best_probability = 0; + helper.best_probability = GST_TYPE_FIND_NONE; helper.caps = NULL; helper.obj = obj; From 1ec901321f49fa8875219a402619c0c16cb6d621 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Thu, 25 Aug 2011 23:53:58 +0200 Subject: [PATCH 21/25] lfocontrolsource: explicitly cast to the enum type Fixes warning #188: enumerated type mixed with another type reported by ICC. --- libs/gst/controller/gstlfocontrolsource.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/gst/controller/gstlfocontrolsource.c b/libs/gst/controller/gstlfocontrolsource.c index f2c6d6b2b6..46061e4b90 100644 --- a/libs/gst/controller/gstlfocontrolsource.c +++ b/libs/gst/controller/gstlfocontrolsource.c @@ -969,7 +969,8 @@ gst_lfo_control_source_set_property (GObject * object, guint prop_id, switch (prop_id) { case PROP_WAVEFORM: g_mutex_lock (self->lock); - gst_lfo_control_source_set_waveform (self, g_value_get_enum (value)); + gst_lfo_control_source_set_waveform (self, + (GstLFOWaveform) g_value_get_enum (value)); g_mutex_unlock (self->lock); break; case PROP_FREQUENCY:{ From d7d2be07af5eb03ef0c45d5c5610b681945ca081 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 26 Aug 2011 00:00:25 +0200 Subject: [PATCH 22/25] typefinder: use GST_TYPE_FIND_NONE instead of 0 Fixes warning #188: enumerated type mixed with another type reported by ICC. --- plugins/elements/gsttypefindelement.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index baf36c4cf7..b6675a6339 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -541,7 +541,7 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event) case MODE_TYPEFIND: switch (GST_EVENT_TYPE (event)) { case GST_EVENT_EOS:{ - GstTypeFindProbability prob = 0; + GstTypeFindProbability prob = GST_TYPE_FIND_NONE; GstCaps *caps = NULL; GST_INFO_OBJECT (typefind, "Got EOS and no type found yet"); @@ -894,7 +894,7 @@ gst_type_find_element_activate_src_pull (GstPad * pad, gboolean active) static gboolean gst_type_find_element_activate (GstPad * pad) { - GstTypeFindProbability probability = 0; + GstTypeFindProbability probability = GST_TYPE_FIND_NONE; GstCaps *found_caps = NULL; GstTypeFindElement *typefind; From 0b31cb5d73bf8eb42d69b9e5431d728dcaf0b051 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 26 Aug 2011 00:06:12 +0200 Subject: [PATCH 23/25] fileindex: explicitly cast to the enum types Fixes warning #188: enumerated type mixed with another type reported by ICC. --- plugins/indexers/gstfileindex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/indexers/gstfileindex.c b/plugins/indexers/gstfileindex.c index 727f6ca01c..c8c8fb1f5d 100644 --- a/plugins/indexers/gstfileindex.c +++ b/plugins/indexers/gstfileindex.c @@ -770,7 +770,7 @@ gst_file_index_add_association (GstIndex * index, GstIndexEntry * entry) } /* this is a hack, we should use a private structure instead */ - sample.format = 0; + sample.format = GST_FORMAT_UNDEFINED; sample.value = GST_INDEX_ASSOC_VALUE (entry, 0); exact = @@ -903,7 +903,7 @@ gst_file_index_get_assoc_entry (GstIndex * index, } /* this is a hack, we should use a private structure instead */ - sample.format = formatx; + sample.format = (GstFormat) formatx; sample.value = value; exact = _fc_bsearch (id_index->array, ARRAY_ROW_SIZE (id_index), @@ -953,7 +953,7 @@ gst_file_index_get_assoc_entry (GstIndex * index, { gint32 flags_be = ARRAY_ROW_FLAGS (row_data); - GST_INDEX_ASSOC_FLAGS (entry) = GINT32_FROM_BE (flags_be); + GST_INDEX_ASSOC_FLAGS (entry) = (GstAssocFlags) GINT32_FROM_BE (flags_be); for (xx = 0; xx < id_index->nformats; xx++) { gint64 val_be = ARRAY_ROW_VALUE (row_data, xx); From 97379e8f4934ac0c11be7952a36db63b29b48cf7 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 26 Aug 2011 00:13:16 +0200 Subject: [PATCH 24/25] stepping: use the proper argument order Fixes warning #188: enumerated type mixed with another type reported by ICC. --- tests/examples/stepping/framestep1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/examples/stepping/framestep1.c b/tests/examples/stepping/framestep1.c index f33532bdac..eb248b6bd8 100644 --- a/tests/examples/stepping/framestep1.c +++ b/tests/examples/stepping/framestep1.c @@ -11,7 +11,7 @@ event_loop (GstElement * pipe) bus = gst_element_get_bus (GST_ELEMENT (pipe)); while (running) { - message = gst_bus_timed_pop_filtered (bus, GST_MESSAGE_ANY, -1); + message = gst_bus_timed_pop_filtered (bus, -1, GST_MESSAGE_ANY); g_assert (message != NULL); From 185ab7f325da9b8ff3f9c9e16b47d2bea2fc3636 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 26 Aug 2011 14:09:47 +0200 Subject: [PATCH 25/25] docs: add since 0.10.36 on the new _NONE enum values --- gst/gsttrace.h | 2 +- gst/gsttypefind.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gst/gsttrace.h b/gst/gsttrace.h index 1882762339..817ae1f768 100644 --- a/gst/gsttrace.h +++ b/gst/gsttrace.h @@ -30,7 +30,7 @@ G_BEGIN_DECLS /** * GstAllocTraceFlags: - * @GST_ALLOC_TRACE_NONE: No tracing specified or desired. + * @GST_ALLOC_TRACE_NONE: No tracing specified or desired. Since 0.10.36. * @GST_ALLOC_TRACE_LIVE: Trace number of non-freed memory. * @GST_ALLOC_TRACE_MEM_LIVE: Trace pointers of unfreed memory. * diff --git a/gst/gsttypefind.h b/gst/gsttypefind.h index 67ee0bedaa..77b89f7221 100644 --- a/gst/gsttypefind.h +++ b/gst/gsttypefind.h @@ -44,11 +44,11 @@ typedef void (* GstTypeFindFunction) (GstTypeFind *find, gpointer data); /** * GstTypeFindProbability: - * @GST_TYPE_FIND_NONE: type undetected - * @GST_TYPE_FIND_MINIMUM: unlikely typefind - * @GST_TYPE_FIND_POSSIBLE: possible type detected - * @GST_TYPE_FIND_LIKELY: likely a type was detected - * @GST_TYPE_FIND_NEARLY_CERTAIN: nearly certain that a type was detected + * @GST_TYPE_FIND_NONE: type undetected. Since 0.10.36. + * @GST_TYPE_FIND_MINIMUM: unlikely typefind. + * @GST_TYPE_FIND_POSSIBLE: possible type detected. + * @GST_TYPE_FIND_LIKELY: likely a type was detected. + * @GST_TYPE_FIND_NEARLY_CERTAIN: nearly certain that a type was detected. * @GST_TYPE_FIND_MAXIMUM: very certain a type was detected. * * The probability of the typefind function. Higher values have more certainty