Mercurial > libavformat.hg
diff utils.c @ 4564:d86307d39b6d libavformat
Allow av_find_stream_info() to be aborted.
Based on a patch by netgem.
author | michael |
---|---|
date | Mon, 23 Feb 2009 02:38:45 +0000 |
parents | e95945e51b63 |
children | 9678d2a61b55 |
line wrap: on
line diff
--- a/utils.c Sun Feb 22 14:27:50 2009 +0000 +++ b/utils.c Mon Feb 23 02:38:45 2009 +0000 @@ -2020,6 +2020,11 @@ count = 0; read_size = 0; for(;;) { + if(url_interrupt_cb()){ + ret= AVERROR(EINTR); + break; + } + /* check if one codec still needs to be handled */ for(i=0;i<ic->nb_streams;i++) { st = ic->streams[i];