Fix crash when calling get_video_adapter_*
in a thread
#79528
Merged
get_video_adapter_*
in a thread
#79528