I have an rtsp camera feed that I'm happily reading data off.

Occasionally, the camera stops responding and needs to be reset -- in which case, blocking reads and connects can take more than a minute to fail.

Is there any way to do that asynchronously? e.g., "read packet but return immediately if no packet there" or something like that? and/or, is it possible to select() on the sockets so I know if anything is going to block before trying to read?

Alternatively, is there a way I can set up (say) a 1-second timeout and retry?

Or is the only way to achieve this asynchrony is by starting another thread?

Thanks in advnace.

_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to