diff options
Diffstat (limited to 'video/hwdec.h')
-rw-r--r-- | video/hwdec.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/hwdec.h b/video/hwdec.h index 3ff7e32a50..ca18340ae1 100644 --- a/video/hwdec.h +++ b/video/hwdec.h @@ -9,6 +9,8 @@ struct mp_hwdec_info { // Can be used to lazily load a requested API. // api_name is e.g. "vdpau" (like the fields above, without "_ctx") // Can be NULL, is idempotent, caller checks _ctx fields for success/access. + // Due to threading, the callback is the only code that is allowed to + // change fields in this struct after initialization. void (*load_api)(struct mp_hwdec_info *info, const char *api_name); void *load_api_ctx; }; |