lavd/fbdev_dec: implement fbdev_get_device_list callback

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
This commit is contained in:
Lukasz Marek 2014-04-28 02:24:16 +02:00
parent 279ff8d2f6
commit e2ebaa0933

View File

@ -205,6 +205,11 @@ static av_cold int fbdev_read_close(AVFormatContext *avctx)
return 0; return 0;
} }
static int fbdev_get_device_list(AVFormatContext *s, AVDeviceInfoList *device_list)
{
return ff_fbdev_get_device_list(device_list);
}
#define OFFSET(x) offsetof(FBDevContext, x) #define OFFSET(x) offsetof(FBDevContext, x)
#define DEC AV_OPT_FLAG_DECODING_PARAM #define DEC AV_OPT_FLAG_DECODING_PARAM
static const AVOption options[] = { static const AVOption options[] = {
@ -227,6 +232,7 @@ AVInputFormat ff_fbdev_demuxer = {
.read_header = fbdev_read_header, .read_header = fbdev_read_header,
.read_packet = fbdev_read_packet, .read_packet = fbdev_read_packet,
.read_close = fbdev_read_close, .read_close = fbdev_read_close,
.get_device_list = fbdev_get_device_list,
.flags = AVFMT_NOFILE, .flags = AVFMT_NOFILE,
.priv_class = &fbdev_class, .priv_class = &fbdev_class,
}; };