return ret;
}
-static GstFlowReturn
-gst_validate_pad_get_range_func (GstPad * pad, GstObject * parent,
- guint64 offset, guint size, GstBuffer ** buffer)
-{
- GstValidatePadMonitor *pad_monitor = _GET_PAD_MONITOR (pad);
- GstFlowReturn ret;
-
- ret = pad_monitor->getrange_func (pad, parent, offset, size, buffer);
- return ret;
-}
-
static gboolean
gst_validate_pad_monitor_buffer_probe (GstPad * pad, GstBuffer * buffer,
gpointer udata, gboolean pull_mode)
gst_pad_set_event_function (pad,
gst_validate_pad_monitor_sink_event_func);
} else {
- pad_monitor->getrange_func = GST_PAD_GETRANGEFUNC (pad);
- if (pad_monitor->getrange_func)
- gst_pad_set_getrange_function (pad, gst_validate_pad_get_range_func);
-
gst_pad_set_event_function (pad, gst_validate_pad_monitor_src_event_func);
/* add buffer/event probes */
GstPadChainFunction chain_func;
GstPadEventFunction event_func;
GstPadEventFullFunction event_full_func;
- GstPadGetRangeFunction getrange_func;
GstPadQueryFunction query_func;
GstPadActivateModeFunction activatemode_func;