summaryrefslogtreecommitdiff
path: root/libavdevice/bktr.c
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2013-08-06 21:19:27 +0300
committerAnton Khirnov <anton@khirnov.net>2013-08-07 21:16:05 +0200
commit71bf6b41d974229a06921806c333ce98566a5d8a (patch)
treed2a93bdc83ca21fb6924355682a047b30d87cc89 /libavdevice/bktr.c
parentfee9db1fdf921295233e94cbe2769f9cd722206d (diff)
downloadffmpeg-71bf6b41d974229a06921806c333ce98566a5d8a.tar.gz
libavdevice: use avpriv_open()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavdevice/bktr.c')
-rw-r--r--libavdevice/bktr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c
index a147d38953..725d90f579 100644
--- a/libavdevice/bktr.c
+++ b/libavdevice/bktr.c
@@ -26,6 +26,7 @@
#include "libavformat/avformat.h"
#include "libavformat/internal.h"
+#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/parseutils.h"
@@ -136,7 +137,7 @@ static av_cold int bktr_init(const char *video_device, int width, int height,
act.sa_handler = catchsignal;
sigaction(SIGUSR1, &act, &old);
- *tuner_fd = open("/dev/tuner0", O_RDONLY);
+ *tuner_fd = avpriv_open("/dev/tuner0", O_RDONLY);
if (*tuner_fd < 0)
av_log(NULL, AV_LOG_ERROR, "Warning. Tuner not opened, continuing: %s\n", strerror(errno));