Merge commit '71bf6b41d974229a06921806c333ce98566a5d8a'
* commit '71bf6b41d974229a06921806c333ce98566a5d8a': libavdevice: use avpriv_open() Conflicts: libavdevice/v4l2.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user