pad-monitor: Fix source pad probe handling
type is a bitmask and not an enum
This commit is contained in:
parent
df228c5729
commit
ec6abff9dd
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user