OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
361319d
)
lavd/v4l2: silence libv4l2 logging
author
Giorgio Vazzana
<mywing81@gmail.com>
Fri, 8 Mar 2013 12:03:43 +0000
(13:03 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 16 Mar 2013 01:44:36 +0000
(
02:44
+0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/v4l2.c
patch
|
blob
|
history
diff --git
a/libavdevice/v4l2.c
b/libavdevice/v4l2.c
index
0c1eb85
..
2d7773a
100644
(file)
--- 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;