diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-10 12:33:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-10 12:38:10 +0000 |
commit | ecb9150a7ffce0a0658d2c7218c252df2d794ec4 (patch) | |
tree | 14d9f128f6ff9e68b442c6306f688676c4755072 /main/ffmpeg1/fix-libv4l2-errors.patch | |
parent | 3c2b28a3f1ff8568d0bcd163f8d2c9c192e7c3cb (diff) | |
download | aports-ecb9150a7ffce0a0658d2c7218c252df2d794ec4.tar.bz2 aports-ecb9150a7ffce0a0658d2c7218c252df2d794ec4.tar.xz |
main/ffmpeg1: ffmpeg-1 for compat reasons
xbmc does not build against ffmpeg-2.0
Diffstat (limited to 'main/ffmpeg1/fix-libv4l2-errors.patch')
-rw-r--r-- | main/ffmpeg1/fix-libv4l2-errors.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/ffmpeg1/fix-libv4l2-errors.patch b/main/ffmpeg1/fix-libv4l2-errors.patch new file mode 100644 index 0000000000..cd3ad43147 --- /dev/null +++ b/main/ffmpeg1/fix-libv4l2-errors.patch @@ -0,0 +1,25 @@ +commit bcd3eb3 +Author: Giorgio Vazzana <mywing81@gmail.com> +Date: Fri Mar 8 13:03:43 2013 +0100 + + lavd/v4l2: silence libv4l2 logging + + Signed-off-by: Michael Niedermayer <michaelni@gmx.at> + +diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c +index 0c1eb85..2d7773a 100644 +--- a/libavdevice/v4l2.c ++++ b/libavdevice/v4l2.c +@@ -884,6 +884,12 @@ static int v4l2_read_header(AVFormatContext *s1) + if (!st) + return AVERROR(ENOMEM); + ++#if CONFIG_LIBV4L2 ++ /* silence libv4l2 logging. if fopen() fails v4l2_log_file will be NULL ++ and errors will get sent to stderr */ ++ v4l2_log_file = fopen("/dev/null", "w"); ++#endif ++ + s->fd = device_open(s1); + if (s->fd < 0) + return s->fd; |