From: softworkz <softwo...@hotmail.com> Signed-off-by: softworkz <softwo...@hotmail.com> --- libavutil/hwcontext.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libavutil/hwcontext.c b/libavutil/hwcontext.c index 276dc9cee6..3111a44651 100644 --- a/libavutil/hwcontext.c +++ b/libavutil/hwcontext.c @@ -137,9 +137,15 @@ enum AVHWDeviceType av_hwdevice_iterate_types(enum AVHWDeviceType prev) return set ? next : AV_HWDEVICE_TYPE_NONE; } +static const char *hwdevice_ctx_get_name(void *ptr) +{ + FFHWDeviceContext *ctx = ptr; + return ctx->hw_type->name; +} + static const AVClass hwdevice_ctx_class = { .class_name = "AVHWDeviceContext", - .item_name = av_default_item_name, + .item_name = hwdevice_ctx_get_name, .category = AV_CLASS_CATEGORY_HWDEVICE, .version = LIBAVUTIL_VERSION_INT, }; -- ffmpeg-codebot _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".