<html><head><style>pre,code,address {
margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
margin-top: 0.2em;
margin-bottom: 0.2em;
}
ol,ul {
margin-top: 0em;
margin-bottom: 0em;
}
blockquote {
margin-top: 0em;
margin-bottom: 0em;
}
</style></head><body><div>Le jeudi 03 août 2023 à 08:50 +0900, 永井知明 via gstreamer-devel a écrit :</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div>Hi</div><div>
<p dir="auto">I wonder why the autovideosink element keeps displaying and the filesink element keeps writing the last input frame even though the source element is paused and the video data is not flowing.</p><p dir="auto">When the source element is paused, I think that the sink element displaying or writing a blank frame is correct behavior.</p></div></div></blockquote><div><br></div><div>If you want this behaviour, you have to feed the "blank" frame to your display sink. Display sink do not make up blank frames. Also, since you only pause the src, buffers that has been produced before the pause will keep rendering.</div><div><br></div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div dir="ltr"><div><p dir="auto">I tried to insert a valve element which drops the frame buffer between the source element and sink element, but the result was the same.</p><p dir="auto">An example source code which keeps displaying the last input frame even though the video source element is paused attached to this mail.</p><p dir="auto">For some additional context, this is running in a Windows 11 and Gstreamer version 1.22.4.</p></div><div>
<div>Kind regards,<br></div><div>Nagai</div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="color:rgb(34,34,34)"><font color="#888888">*******************<br></font><font color="#888888"> 永井 知明</font></div><div style="color:rgb(34,34,34)"><font color="#888888">フォトロン M&E ソリューションズ株式会社</font></div><div style="color:rgb(34,34,34)"><div dir="ltr"><font color="#999999">〒101-0051</font></div><div dir="ltr"><font color="#999999">東京都千代田区神田神保町1-105</font></div><div dir="ltr"><font color="#999999">神保町三井ビルディング 21F</font></div><div dir="ltr"><font color="#999999">TEL:03-3518-6282</font></div><div dir="ltr"><font color="#999999">FAX:03-3518-6279</font></div><font color="#888888">E-Mail:nagait</font><font color="#1155cc"><a href="mailto:itimura@photron.co.jp" style="color:rgb(17,85,204)" target="_blank">@photron.co.jp</a></font><br><font color="#888888">*******************</font></div></div></div></div></div></blockquote><div><br></div><div><span></span></div></body></html>