<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On 18 Dec 2017, at 15:24, Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" class="">nicolas@ndufresne.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class=""><div class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">Le 18 déc. 2017 5:10 AM, "Jimmy De Pauw" <<a href="mailto:jimmy@dcode.eu" class="">jimmy@dcode.eu</a>> a écrit :<br type="attribution" class=""><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br class="">
<br class="">
I have been creating my own plugin using GstBaseTransform as the parent class.<br class="">
It works find but now i want to handle the QoS in my tranform method to know if i have to drop the buffer or not.<br class="">
<br class="">
I can see that BaseTransform already listen to QoS event on its sink and set some properties in its priv structure.<br class="">
I would like to have access to the earliest_time property from my own transform method but i don’t know how to do it, if it is possible at all.<br class="">
It sounds like i have no access to it at all.<br class="">
<br class="">
Looking at the videoconvert source code i don’t see how it handles QoS eventl.<br class=""></blockquote></div></div></div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">It's entirely handled by the base class.  But you can catch the event on your srcpad, there is virtual functions for that.</div></div></div></blockquote><div><br class=""></div><div>After reading the source code for BaseTransform this was my initial impression. It does work as intended in python.</div><div>Therefore there must be something wrong with my C because every frame are processed regardless of how long it takes and the buffer in transform_ip does not have any flags set.</div><div><br class=""></div><div>I made sure QoS was enabled by using the following in my init</div><div>gst_base_transform_set_qos_enabled(GST_BASE_TRANSFORM(filter), TRUE);</div><div><br class=""></div><div>What could i check to determine the problem?</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="auto" class=""><div dir="auto" class=""><br class=""></div><div dir="auto" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="">
What is the proper way of using what is already there in the BaseTransform class to handle QoS on my own subclass?<br class="">
<br class="">
Thanks<br class="">
______________________________<wbr class="">_________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.<wbr class="">freedesktop.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank" class="">https://lists.freedesktop.org/<wbr class="">mailman/listinfo/gstreamer-<wbr class="">devel</a><br class="">
</blockquote></div><br class=""></div></div></div>
_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></blockquote></div><br class=""></body></html>