<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 26 sept. 2019 09 h 10, Abdumuminov, Umedzhon <<a href="mailto:umedzhon.abdumuminov@intel.com">umedzhon.abdumuminov@intel.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi guys,<br>
<br>
We have problem with missing some frames due to finishing pipeline before we done with processing.<br>
<br>
We have inherited our elements from GstBaseTransform. Our elements do processing in their own threads in parallel.<br>
According to documentation (<a href="https://gstreamer.freedesktop.org/documentation/base/gstbasetransform.html#GstBaseTransformClass::generate_output" rel="noreferrer noreferrer" target="_blank">https://gstreamer.freedesktop.org/documentation/base/gstbasetransform.html#GstBaseTransformClass::generate_output</a>) we can return GST_BASE_TRANSFORM_FLOW_DROPPED and it is fine.<br>
So, when filesrc reach end of file and send EOS we didn't finished processing yet, but due to EOS pipeline finishes and we are losing some frames that are in processing.<br>
<br>
We would like to keep processing in our own threads and do not lose frames when pipeline finishes.<br>
Is there any convenient way to make pipeline wait until we finished? or maybe we  can return something different instead of "drop" status?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Just wait and push when you receive the Eos event. This event is on the streaming thread with stream lock held.</div><div dir="auto"><br></div><div dir="auto">Don't forget to report your latency!</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thank you in advance!<br>
<br>
Umed<br>
<br>
--------------------------------------------------------------------<br>
Joint Stock Company Intel A/O<br>
Registered legal address: Krylatsky Hills Business Park,<br>
17 Krylatskaya Str., Bldg 4, Moscow 121614,<br>
Russian Federation<br>
<br>
This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>