diff options
Diffstat (limited to 'video/out/dr_helper.h')
-rw-r--r-- | video/out/dr_helper.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/video/out/dr_helper.h b/video/out/dr_helper.h index ff1d268426..cf2ed14855 100644 --- a/video/out/dr_helper.h +++ b/video/out/dr_helper.h @@ -15,12 +15,12 @@ struct mp_dispatch_queue; // dr_helper instance can be destroyed. struct dr_helper *dr_helper_create(struct mp_dispatch_queue *dispatch, struct mp_image *(*get_image)(void *ctx, int imgfmt, int w, int h, - int stride_align), + int stride_align, int flags), void *get_image_ctx); -// Make DR release calls (freeing images) reentrant if they are called on this -// (pthread_self()) thread. That means any free call will directly release the -// image as allocated with get_image(). +// Make DR release calls (freeing images) reentrant if they are called on current +// thread. That means any free call will directly release the image as allocated +// with get_image(). // Only 1 thread can use this at a time. Note that it would make no sense to // call this on more than 1 thread, as get_image is assumed not thread-safe. void dr_helper_acquire_thread(struct dr_helper *dr); @@ -34,4 +34,4 @@ void dr_helper_release_thread(struct dr_helper *dr); // allocate a DR'ed image on the render thread (at least not in a way which // actually works if you want foreign threads to be able to free them). struct mp_image *dr_helper_get_image(struct dr_helper *dr, int imgfmt, - int w, int h, int stride_align); + int w, int h, int stride_align, int flags); |