<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html style="direction: ltr;">
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<style>body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body style="direction: ltr;"
bidimailui-detected-decoding-type="latin-charset" bgcolor="#ffffff"
text="#000000">
On 01/20/2012 11:21 AM, Andrey Utkin wrote:<br>
<blockquote
cite="mid:CANZNk82oLiUO8cVW8buTrt6v9DqNqXaZdpwAs=LVy-Dem7h16A@mail.gmail.com"
type="cite">
<pre wrap="">The thing you perhaps want to use is AVFormatContext.interrupt_callback.
You can implement a callback procedure that checks the time spent
since last packet was retrieved from av_read_frame(). But look out to
not make it too heavy function.
</pre>
</blockquote>
How often / when is it called? If it's a tcp-rtsp connection? what
if it's a udp-rtsp connection?<br>
<blockquote
cite="mid:CANZNk82oLiUO8cVW8buTrt6v9DqNqXaZdpwAs=LVy-Dem7h16A@mail.gmail.com"
type="cite">
<pre wrap="">Another way is to introduce a monitoring thread, that'll wake each N
seconds, checking if quantity of retrieved data has progressed, and if
no, set some flag. And interrupt_callback function will check this
flag value.</pre>
</blockquote>
That was what I was planning to do, but I was not aware of the
interrupt callback. Is there documentation anywhere about when it is
called?<br>
<br>
Thanks in advance<br>
</body>
</html>