avdevice/xv: fix missing {

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-06-30 21:31:43 +02:00
parent 847bb638c0
commit 9efa7f82ce

View File

@ -306,7 +306,7 @@ static int write_picture(AVFormatContext *s, AVPicture *pict)
XEvent event; XEvent event;
while (XPending(xv->display)) { while (XPending(xv->display)) {
XNextEvent(xv->display, &event); 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"); av_log(xv, AV_LOG_DEBUG, "Window close event.\n");
return AVERROR(EPIPE); return AVERROR(EPIPE);
} }