summaryrefslogtreecommitdiff
path: root/libavformat/tee.c
diff options
context:
space:
mode:
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>2016-08-12 22:30:03 +0200
committerJan Sebechlebsky <sebechlebskyjan@gmail.com>2016-09-29 17:17:26 +0200
commit81bab1074ff9071ea0c5ed91ae10e9e1b6e9ad30 (patch)
treef61e4feb609850cba5388f3e27bb946264ecf8f9 /libavformat/tee.c
parent856e1eacf7f3c0b5607aae7902d1498c2218f92e (diff)
downloadffmpeg-81bab1074ff9071ea0c5ed91ae10e9e1b6e9ad30.tar.gz
avformat/tee: Copy interrupt callback and flags to slave
Copy interrupt callback to slave format context to allow user to interrupt IO. Copy format flags as well. Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index 518af4a5d8..d59ad4d183 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -161,6 +161,8 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
avf2->opaque = avf->opaque;
avf2->io_open = avf->io_open;
avf2->io_close = avf->io_close;
+ avf2->interrupt_callback = avf->interrupt_callback;
+ avf2->flags = avf->flags;
tee_slave->stream_map = av_calloc(avf->nb_streams, sizeof(*tee_slave->stream_map));
if (!tee_slave->stream_map) {