From d7d2be07af5eb03ef0c45d5c5610b681945ca081 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Fri, 26 Aug 2011 00:00:25 +0200 Subject: [PATCH] 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 baf36c4..b6675a6 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; -- 2.7.4