typefinder: use GST_TYPE_FIND_NONE instead of 0

Fixes warning #188: enumerated type mixed with another type reported by ICC.
This commit is contained in:
Josep Torra 2011-08-26 00:00:25 +02:00
parent 1ec901321f
commit d7d2be07af

View file

@ -541,7 +541,7 @@ gst_type_find_element_handle_event (GstPad * pad, GstEvent * event)
case MODE_TYPEFIND: case MODE_TYPEFIND:
switch (GST_EVENT_TYPE (event)) { switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_EOS:{ case GST_EVENT_EOS:{
GstTypeFindProbability prob = 0; GstTypeFindProbability prob = GST_TYPE_FIND_NONE;
GstCaps *caps = NULL; GstCaps *caps = NULL;
GST_INFO_OBJECT (typefind, "Got EOS and no type found yet"); 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 static gboolean
gst_type_find_element_activate (GstPad * pad) gst_type_find_element_activate (GstPad * pad)
{ {
GstTypeFindProbability probability = 0; GstTypeFindProbability probability = GST_TYPE_FIND_NONE;
GstCaps *found_caps = NULL; GstCaps *found_caps = NULL;
GstTypeFindElement *typefind; GstTypeFindElement *typefind;