<div dir="ltr">Hi,<div><br></div><div>I'm wondering what is the expected behaviour when stoping reading frames (av_read_frame) for a while, while the connection is still opened and then starting to read again.</div><div><br></div><div>I noticed several behaviours but I'm not sure if I should rely on any of those:</div><div><br></div><div>1. When resuming reading I get the "old" frames until a point where I see a "jump" to the present and start receive the current frames. This is what I had expected.</div><div><br></div><div>2. av_read_frames blocks and I have to "interrupt_callback" to unblock it but then I can't resume playing without first reopening the stream which takes time.</div><div><br></div><div>What I'm doing is av_read_frame in a while loop running in a thread and when I signal that thread it breaks from the loop and ends. Once I want to resume playing I'm creating a new thread and start running on the av_read_frame again. Doing this without closing the connection.</div><div><br></div><div>This has worked fine but I recently started seeing the second behaviour where av_read_frame blocks.</div><div><br></div><div>Any Idea?</div><div><br></div><div>Thanks,</div><div>Chen</div></div>