libavdevice/gdigrab: fix ffmpeg -devices doesn't show gdigrab
authorJun Zhao <barryjzhao@tencent.com>
Fri, 17 May 2019 07:35:28 +0000 (15:35 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Fri, 17 May 2019 13:51:20 +0000 (21:51 +0800)
missed the category AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT lead to
ffmpeg -devices doesn't show gdigrab as a input device

FIx #7848

Found-by: dangibson
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavdevice/gdigrab.c

index b226bd0..f444440 100644 (file)
@@ -647,6 +647,7 @@ static const AVClass gdigrab_class = {
     .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
+    .category   = AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT,
 };
 
 /** gdi grabber device demuxer declaration */