vo_xv: fix crash with --wid

Fixes #2386.

Reminder that you should not use this crap-VO.
This commit is contained in:
wm4 2015-10-07 13:47:36 +02:00
parent 0a41c6f0ec
commit aa796c23db
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ static void fill_rect(struct vo *vo, GC gc, int x0, int y0, int x1, int y1)
x1 = MPMIN(x1, vo->dwidth);
y1 = MPMIN(y1, vo->dheight);
if (x11->window && x1 > x0 && y1 > y0)
if (x11->window && gc && x1 > x0 && y1 > y0)
XFillRectangle(x11->display, x11->window, gc, x0, y0, x1 - x0, y1 - y0);
}