aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/bktr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-08 11:36:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-08 11:36:21 +0200
commit95fa1fe437c7dfe7b9a01685d3e9e9f3525f0bdc (patch)
tree6269787c5022ccabc0f0ccab1289040c51d9bfde /libavdevice/bktr.c
parenteec9c7af3370ee1a114597686382a4ca029392ca (diff)
parent71bf6b41d974229a06921806c333ce98566a5d8a (diff)
downloadffmpeg-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.c3
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));