[FFmpeg-devel] [PATCH] libavdevice/gdigrab: fix ffmpeg -devices doesn't show gdigrab
Paul B Mahol
onemda at gmail.com
Fri May 17 14:33:15 EEST 2019
On 5/17/19, Jun Zhao <mypopydev at gmail.com> wrote:
> From: Jun Zhao <barryjzhao at tencent.com>
>
> 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
> Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> ---
> libavdevice/gdigrab.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/libavdevice/gdigrab.c b/libavdevice/gdigrab.c
> index b226bd0..f444440 100644
> --- a/libavdevice/gdigrab.c
> +++ b/libavdevice/gdigrab.c
> @@ -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 */
> --
> 1.7.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
lgtm
More information about the ffmpeg-devel
mailing list