]> git.sesse.net Git - ffmpeg/commitdiff
segment: Pass the interrupt callback on to the chained AVFormatContext, too
authorMartin Storsjö <martin@martin.st>
Sat, 25 Feb 2012 23:35:13 +0000 (01:35 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 2 Oct 2012 20:14:07 +0000 (22:14 +0200)
This might not be needed at the moment, but it's good practice to
pass it to all chained AVFormatContexts, if it would happen to be
used there at a later point.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/segment.c

index 88d80a41b156da40bc50c05f4a490127fb8b8002..0c644d48aef9145891fdc5c13b50347aca7fb64b 100644 (file)
@@ -144,6 +144,7 @@ static int seg_write_header(AVFormatContext *s)
         goto fail;
     }
 
+    oc->interrupt_callback = s->interrupt_callback;
     seg->avf = oc;
 
     oc->streams = s->streams;