diff --git a/libavdevice/xv.c b/libavdevice/xv.c index 71857e6b83..aeb3e4114b 100644 --- a/libavdevice/xv.c +++ b/libavdevice/xv.c @@ -306,7 +306,7 @@ static int write_picture(AVFormatContext *s, AVPicture *pict) XEvent event; while (XPending(xv->display)) { XNextEvent(xv->display, &event); - if (event.type == ClientMessage && event.xclient.data.l[0] == xv->wm_delete_message) + if (event.type == ClientMessage && event.xclient.data.l[0] == xv->wm_delete_message) { av_log(xv, AV_LOG_DEBUG, "Window close event.\n"); return AVERROR(EPIPE); }