pad-monitor: Remove unused pad getrange override
authorEdward Hervey <edward@centricular.com>
Wed, 25 Nov 2015 15:10:50 +0000 (16:10 +0100)
committerEdward Hervey <bilboed@bilboed.com>
Wed, 30 Jan 2019 13:30:52 +0000 (14:30 +0100)
validate/gst/validate/gst-validate-pad-monitor.c
validate/gst/validate/gst-validate-pad-monitor.h

index 79d98f2..552759a 100644 (file)
@@ -2440,17 +2440,6 @@ gst_validate_pad_monitor_activatemode_func (GstPad * pad, GstObject * parent,
   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)
@@ -2798,10 +2787,6 @@ gst_validate_pad_monitor_do_setup (GstValidateMonitor * monitor)
       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 */
index 73879e0..06d4b7f 100644 (file)
@@ -61,7 +61,6 @@ struct _GstValidatePadMonitor {
   GstPadChainFunction chain_func;
   GstPadEventFunction event_func;
   GstPadEventFullFunction event_full_func;
-  GstPadGetRangeFunction getrange_func;
   GstPadQueryFunction query_func;
   GstPadActivateModeFunction activatemode_func;