<div dir="ltr"><div><div><div><div><div>Hi,<br></div><br></div>I'm facing an issue with a GstTask gone in a pause state sometimes (1 out of 20 times).<br><br></div>I have a pipeline that is a v4lsrc -> tee -> queue -> vaapisink, periodically I attach and detach a "queue -> vaaph24enc -> rtph264pay -> rtpbin -> udpsink".<br><br></div>The problem happens when I attach the encoder branch to the tee element. It does not happen regularly it took something like 1 each 20 attach/detach to happen. Sometimes more sometimes less.<br><br></div>When I attach the encoder I don't do anything special like. I add all elements to the pipeline, link together, request a new pad to the tee, link to the newly added branch with the tee and sync with the parent state.<br><br><div>Logs is not very helpful. I only see that the GstTask went on pause.<br>```<br>Apr 24 07:54:55 linux vd[23663]: trying to link tee0:src_10 and q_enc:sink<br>Apr 24 07:54:55 linux vd[23663]: ts: 68:03:24.609568000 now 68:03:24.642953584 delay 0:00:00.033385584<br>Apr 24 07:54:55 linux vd[23663]: sync to 0:02:43.266665034 out ts 0:03:58.745488463<br>Apr 24 07:54:55 linux vd[23663]: lost frames detected: count = 1 - ts: 0:03:58.745488463<br>Apr 24 07:54:55 linux vd[23663]: Received event on flushing pad. Discarding<br>Apr 24 07:54:55 linux vd[23663]: pausing after gst_pad_push() = flushing<br>Apr 24 07:54:55 linux vd[23663]: Task going to paused<br>Apr 24 07:54:55 linux vd[23663]: linked tee0:src_10 and q_enc:sink, successful<br>```<br><br></div><div>Any suggestion? Should I add the new branch in a probe IDLE? <br></div><div><br></div><div>Best<br></div><div>Matteo Valdina<br></div><div><br><div><div>-- <br><div><div class="gmail_signature" data-smartmail="gmail_signature">“There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult.”<br>- Tony Hoare</div>
</div></div></div></div></div>