pad-monitor: fix return type of get_range_func

The return type of GstPadGetRangeFunction is GstFlowReturn

https://bugzilla.gnome.org/show_bug.cgi?id=774638
This commit is contained in:
Scott D Phillips 2016-11-17 10:28:01 -08:00 committed by Thibault Saunier
parent caafd6c36e
commit 11c5a413ab

View file

@ -2299,13 +2299,13 @@ gst_validate_pad_monitor_activatemode_func (GstPad * pad, GstObject * parent,
return ret;
}
static gboolean
static GstFlowReturn
gst_validate_pad_get_range_func (GstPad * pad, GstObject * parent,
guint64 offset, guint size, GstBuffer ** buffer)
{
GstValidatePadMonitor *pad_monitor =
g_object_get_data ((GObject *) pad, "validate-monitor");
gboolean ret;
GstFlowReturn ret;
ret = pad_monitor->getrange_func (pad, parent, offset, size, buffer);
return ret;
}