summaryrefslogtreecommitdiffstats
path: root/video/out/vo_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo_x11.c')
-rw-r--r--video/out/vo_x11.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/video/out/vo_x11.c b/video/out/vo_x11.c
index 98d7a23534..6932cb68f2 100644
--- a/video/out/vo_x11.c
+++ b/video/out/vo_x11.c
@@ -490,8 +490,10 @@ static int redraw_frame(struct vo *vo)
{
struct priv *p = vo->priv;
- if (!p->original_image)
+ if (!p->original_image) {
+ vo_x11_clear_background(vo, &(struct mp_rect){0, 0, vo->dwidth, vo->dheight});
return false;
+ }
draw_image(vo, p->original_image);
return true;
@@ -628,7 +630,8 @@ static int control(struct vo *vo, uint32_t request, void *data)
resize(vo);
return VO_TRUE;
case VOCTRL_REDRAW_FRAME:
- return redraw_frame(vo);
+ redraw_frame(vo);
+ return true;
case VOCTRL_WINDOW_TO_OSD_COORDS: {
// OSD is rendered into the scaled image
float *c = data;