You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/dnn: add log context to ff_get_dnn_module
Print backend type when failed. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
extern const DNNModule ff_dnn_backend_openvino;
|
||||
extern const DNNModule ff_dnn_backend_tf;
|
||||
|
||||
const DNNModule *ff_get_dnn_module(DNNBackendType backend_type)
|
||||
const DNNModule *ff_get_dnn_module(DNNBackendType backend_type, void *log_ctx)
|
||||
{
|
||||
switch(backend_type){
|
||||
#if (CONFIG_LIBTENSORFLOW == 1)
|
||||
@@ -41,7 +41,9 @@ const DNNModule *ff_get_dnn_module(DNNBackendType backend_type)
|
||||
return &ff_dnn_backend_openvino;
|
||||
#endif
|
||||
default:
|
||||
av_log(NULL, AV_LOG_ERROR, "Module backend_type is not supported or enabled.\n");
|
||||
av_log(log_ctx, AV_LOG_ERROR,
|
||||
"Module backend_type %d is not supported or enabled.\n",
|
||||
backend_type);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user