From 4edb34f6cc43a64ea6582ebaf95a7e9e56cbb9af Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
Date: Sun, 26 Feb 2012 01:35:13 +0200
Subject: [PATCH] segment: Pass the interrupt callback on to the chained
 AVFormatContext, too
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/segment.c b/libavformat/segment.c
index 88d80a41b1..0c644d48ae 100644
--- a/libavformat/segment.c
+++ b/libavformat/segment.c
@@ -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;