changeset 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 90e0047f90b6
children 168e8eafefc6
files utils.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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];