pad-monitor: Fix source pad probe handling

type is a bitmask and not an enum
This commit is contained in:
Edward Hervey 2013-08-21 18:21:41 +02:00 committed by Thiago Santos
parent df228c5729
commit ec6abff9dd

View File

@ -1514,16 +1514,10 @@ static GstPadProbeReturn
gst_validate_pad_monitor_pad_probe (GstPad * pad, GstPadProbeInfo * info, gst_validate_pad_monitor_pad_probe (GstPad * pad, GstPadProbeInfo * info,
gpointer udata) gpointer udata)
{ {
switch (info->type) { if (info->type & GST_PAD_PROBE_TYPE_BUFFER)
case GST_PAD_PROBE_TYPE_BUFFER: gst_validate_pad_monitor_buffer_probe (pad, info->data, udata);
gst_validate_pad_monitor_buffer_probe (pad, info->data, udata); else if (info->type & GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM)
break; gst_validate_pad_monitor_event_probe (pad, info->data, udata);
case GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM:
gst_validate_pad_monitor_event_probe (pad, info->data, udata);
break;
default:
break;
}
return GST_PAD_PROBE_OK; return GST_PAD_PROBE_OK;
} }