diff options
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/video_out.h | 2 | ||||
-rw-r--r-- | libvo/vo_xv.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libvo/video_out.h b/libvo/video_out.h index ffb5c0c4f3..1c48b5fb06 100644 --- a/libvo/video_out.h +++ b/libvo/video_out.h @@ -105,6 +105,8 @@ struct voctrl_screenshot_args { // image data directly. // Is never NULL. (Failure has to be indicated by returning VO_FALSE.) struct mp_image *out_image; + // Whether the VO rendered OSD/subtitles into out_image + bool has_osd; }; typedef struct { diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index 92ac9a2461..8095490f4a 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -679,6 +679,7 @@ static int control(struct vo *vo, uint32_t request, void *data) case VOCTRL_SCREENSHOT: { struct voctrl_screenshot_args *args = data; args->out_image = get_screenshot(vo); + args->has_osd = !ctx->have_image_copy; return true; } } |