mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
pad-monitor: Fix source pad probe handling
type is a bitmask and not an enum
This commit is contained in:
parent
df228c5729
commit
ec6abff9dd
1 changed files with 4 additions and 10 deletions
|
@ -1514,16 +1514,10 @@ static GstPadProbeReturn
|
|||
gst_validate_pad_monitor_pad_probe (GstPad * pad, GstPadProbeInfo * info,
|
||||
gpointer udata)
|
||||
{
|
||||
switch (info->type) {
|
||||
case GST_PAD_PROBE_TYPE_BUFFER:
|
||||
gst_validate_pad_monitor_buffer_probe (pad, info->data, udata);
|
||||
break;
|
||||
case GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM:
|
||||
gst_validate_pad_monitor_event_probe (pad, info->data, udata);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (info->type & GST_PAD_PROBE_TYPE_BUFFER)
|
||||
gst_validate_pad_monitor_buffer_probe (pad, info->data, udata);
|
||||
else if (info->type & GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM)
|
||||
gst_validate_pad_monitor_event_probe (pad, info->data, udata);
|
||||
|
||||
return GST_PAD_PROBE_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue