That is just what I needed. I tested it and worked as expected. Thank you very much.
On Tue, Feb 10, 2015 at 6:40 PM, wm4 <[email protected]> wrote: > On Tue, 10 Feb 2015 18:29:47 +0100 > Manuel Torres <[email protected]> wrote: > > > Hello everyone, > > > > I wanted to know what the proper way to interrupt a "avformat_open_input" > > call that is stuck because it is opening an UDP URL where there is no > video > > is. > > > > Any help will be very much appreciated. > > There is none. There's only an "interrupt callback", which you can set. > libavformat will call this callback frequently, and will exit early if > you callback returns 1. It's polling, but still good enough for user > interaction. > > It can be set with something like this: > > AVFormatContext *s = avformat_alloc_context(); > s->interrupt_callback.callback = ...; > avformat_open_input(s, ...); > _______________________________________________ > libav-api mailing list > [email protected] > https://lists.libav.org/mailman/listinfo/libav-api > _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
