]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Allow av_find_stream_info() to be aborted.
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 23 Feb 2009 02:38:45 +0000 (02:38 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 23 Feb 2009 02:38:45 +0000 (02:38 +0000)
Based on a patch by netgem.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17538 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/utils.c

index 63c77cfe5992290d9d8336bb766616a9a7f9f8d9..f5bcf8908113cd1486c7afba8c7eba9329f898c3 100644 (file)
@@ -2020,6 +2020,11 @@ int av_find_stream_info(AVFormatContext *ic)
     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];