From 1756771e5174360da868103a5d9123015bf7de4a Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Fri, 4 Apr 2008 08:42:51 +0300 Subject: vo_xv.c: Cosmetic changes Remove an unnecessary inner scope in a function and separate 'i' loop counter variable declared in it, reindent. --- libvo/vo_xv.c | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_xv.c b/libvo/vo_xv.c index dee61169ca..0d0fd73fde 100644 --- a/libvo/vo_xv.c +++ b/libvo/vo_xv.c @@ -214,22 +214,17 @@ static int config(struct vo *vo, uint32_t width, uint32_t height, vo_doublebuffering ? (vo_directrendering ? NUM_BUFFERS : 2) : 1; /* check image formats */ - { - unsigned int i; - - ctx->xv_format = 0; - for (i = 0; i < ctx->formats; i++) - { - mp_msg(MSGT_VO, MSGL_V, - "Xvideo image format: 0x%x (%4.4s) %s\n", ctx->fo[i].id, - (char *) &ctx->fo[i].id, - (ctx->fo[i].format == XvPacked) ? "packed" : "planar"); - if (ctx->fo[i].id == format) - ctx->xv_format = ctx->fo[i].id; - } - if (!ctx->xv_format) - return -1; + ctx->xv_format = 0; + for (i = 0; i < ctx->formats; i++) { + mp_msg(MSGT_VO, MSGL_V, + "Xvideo image format: 0x%x (%4.4s) %s\n", ctx->fo[i].id, + (char *) &ctx->fo[i].id, + (ctx->fo[i].format == XvPacked) ? "packed" : "planar"); + if (ctx->fo[i].id == format) + ctx->xv_format = ctx->fo[i].id; } + if (!ctx->xv_format) + return -1; #ifdef HAVE_NEW_GUI if (use_gui) -- cgit v1.2.3