On 18.2.2011 10:48, michael chua wrote:
Is it normal/expected for av_open_input_file to block without a
timeout or error when trying to connect to an unavailable host? It
works fine with files, but if you give it an rtp url for a filename,
the function call never returns.

Specifically, it seems stuck in a for loop inside rtp_read (rtpproto.c:210).
_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Right. There's no timeout on this function. If a rtp stream is received the function returns, otherwise not. To avoid the whole application to block, you have to realize a timeout by your own, take a look at the 'timeout on av_read_frame()' discussion.

Steffen

_______________________________________________
libav-user mailing list
libav-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to