<html><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1436262494170_25573">Hi,</div><div id="yui_3_16_0_1_1436262494170_25626"><br></div><div id="yui_3_16_0_1_1436262494170_25581">I need to write a generic rate element that would be able to throttle or interpolate generic buffers.</div><div dir="ltr" id="yui_3_16_0_1_1436262494170_25604">It would be similar in function to  the videorate or audiorate elements but would work on nondescript buffers (could be text buffers...).</div><div id="yui_3_16_0_1_1436262494170_25637" dir="ltr"><br></div><div id="yui_3_16_0_1_1436262494170_25638" dir="ltr">I am looking into introducing a GstBaseRate class. This class would eventually serve as a base class for the videorate and audiorate elements (in a later stage). That base class would also be used for my own specific element where I need special logic to merge or interpolate buffers.</div><div id="yui_3_16_0_1_1436262494170_25703" dir="ltr"><br></div><div id="yui_3_16_0_1_1436262494170_25704" dir="ltr">I'll obviously use audiorate and/or videorate as a source of inspiration.</div><div id="yui_3_16_0_1_1436262494170_25756" dir="ltr"><br></div><div id="yui_3_16_0_1_1436262494170_25759" dir="ltr">That leads me to my first question:</div><div id="yui_3_16_0_1_1436262494170_25757" dir="ltr">Audiorate derives directly from GstElement while videorate derives from GstBaseTransform.</div><div id="yui_3_16_0_1_1436262494170_25780" dir="ltr">Is there a reason for this difference or could audiorate also be made to derive from GstBaseTransform?</div><div id="yui_3_16_0_1_1436262494170_25781" dir="ltr">In other words, should the GstBaseRate derive from GstElement or GstBaseTransform?</div><div id="yui_3_16_0_1_1436262494170_25822" dir="ltr"><br></div><div id="yui_3_16_0_1_1436262494170_25820" dir="ltr">And more generally, does the above make sense or are audiorate and videorate irreconcilable by nature and I would be better of writing my own rate element without trying to introduce a GstBaseRate class?</div><div id="yui_3_16_0_1_1436262494170_25819" dir="ltr"><br></div><div id="yui_3_16_0_1_1436262494170_25818" dir="ltr">Cheers,</div><div id="yui_3_16_0_1_1436262494170_25817" dir="ltr">Philippe.<br></div><div style="" class="" id="yui_3_16_0_1_1436262494170_25604"> </div></div></body></html>