aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tee.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-01-30 02:17:51 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-02 04:16:50 +0100
commitfe3fed0b143ef6bf2d9b65ce05d55aba4224429e (patch)
tree45ead8f324a1e5190ea4905cb574325a3d9196bd /libavformat/tee.c
parent1dba8371d93cf1c83bcd5c432d921905206a60f3 (diff)
downloadffmpeg-fe3fed0b143ef6bf2d9b65ce05d55aba4224429e.tar.gz
Update demuxers and protocols for protocol whitelist support
Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index 8c54d32473..4993ca3714 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -24,6 +24,7 @@
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "avformat.h"
+#include "avio_internal.h"
#define MAX_SLAVES 16
@@ -226,7 +227,9 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
}
if (!(avf2->oformat->flags & AVFMT_NOFILE)) {
- if ((ret = avio_open(&avf2->pb, filename, AVIO_FLAG_WRITE)) < 0) {
+ if ((ret = ffio_open_whitelist(&avf2->pb, filename, AVIO_FLAG_WRITE,
+ &avf->interrupt_callback, NULL,
+ avf->protocol_whitelist)) < 0) {
av_log(avf, AV_LOG_ERROR, "Slave '%s': error opening: %s\n",
slave, av_err2str(ret));
goto end;