diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-08 11:36:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-08 11:36:21 +0200 |
commit | 95fa1fe437c7dfe7b9a01685d3e9e9f3525f0bdc (patch) | |
tree | 6269787c5022ccabc0f0ccab1289040c51d9bfde /libavdevice/bktr.c | |
parent | eec9c7af3370ee1a114597686382a4ca029392ca (diff) | |
parent | 71bf6b41d974229a06921806c333ce98566a5d8a (diff) | |
download | ffmpeg-95fa1fe437c7dfe7b9a01685d3e9e9f3525f0bdc.tar.gz |
Merge commit '71bf6b41d974229a06921806c333ce98566a5d8a'
* commit '71bf6b41d974229a06921806c333ce98566a5d8a':
libavdevice: use avpriv_open()
Conflicts:
libavdevice/v4l2.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavdevice/bktr.c')
-rw-r--r-- | libavdevice/bktr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavdevice/bktr.c b/libavdevice/bktr.c index b0dbe60a2f..46d006d65f 100644 --- a/libavdevice/bktr.c +++ b/libavdevice/bktr.c @@ -25,6 +25,7 @@ */ #include "libavformat/internal.h" +#include "libavutil/internal.h" #include "libavutil/log.h" #include "libavutil/opt.h" #include "libavutil/parseutils.h" @@ -135,7 +136,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)); |