summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-04 08:42:51 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-04-23 13:41:04 +0300
commit1756771e5174360da868103a5d9123015bf7de4a (patch)
tree8f622cb0ff7b172aec6dde082e63c2d528d36bbb /libvo
parentef874e0f4cb4672600b27771aeb263b797bb4c0c (diff)
downloadmpv-1756771e5174360da868103a5d9123015bf7de4a.tar.bz2
mpv-1756771e5174360da868103a5d9123015bf7de4a.tar.xz
vo_xv.c: Cosmetic changes
Remove an unnecessary inner scope in a function and separate 'i' loop counter variable declared in it, reindent.
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_xv.c25
1 files changed, 10 insertions, 15 deletions
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)