[FFmpeg-devel] [PATCH] avfoundation: do not report an I/O error if devices are listed
Thomas Volkert
silvo at gmx.net
Sun Apr 26 12:59:04 CEST 2015
From: ThomasVolkert <thomas at homer-conferencing.com>
---
libavdevice/avfoundation.m | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m
index 763e675..aa8e825 100644
--- a/libavdevice/avfoundation.m
+++ b/libavdevice/avfoundation.m
@@ -708,7 +708,9 @@ static int avf_read_header(AVFormatContext *s)
int index = [devices indexOfObject:device];
av_log(ctx, AV_LOG_INFO, "[%d] %s\n", index, name);
}
- goto fail;
+
+ [pool release];
+ return 0;
}
// parse input filename for video and audio device
--
1.8.5.2 (Apple Git-48)
More information about the ffmpeg-devel
mailing list