summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2016-08-04 23:10:24 -0400
committerwm4 <wm4@nowhere>2016-08-05 10:08:52 +0200
commitfa7beaad1fa211c5654a17cc1b7cf0e63acc52b9 (patch)
treeb93fff0bb2a781eafaa740799122cce7e02e9d65
parent00091411ec91edbd5357dbba6feb4c08ddf6ac4f (diff)
downloadmpv-fa7beaad1fa211c5654a17cc1b7cf0e63acc52b9.tar.bz2
mpv-fa7beaad1fa211c5654a17cc1b7cf0e63acc52b9.tar.xz
tvi_v4l2: explicitly brace the code
It's fine either way, but this code is weirdly formatted. Make it more explicit.
-rw-r--r--stream/tvi_v4l2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c
index 91c810ad23..1f3ba45895 100644
--- a/stream/tvi_v4l2.c
+++ b/stream/tvi_v4l2.c
@@ -1005,7 +1005,10 @@ static int uninit(priv_t *priv)
/* free memory and close device */
free(priv->map); priv->map = NULL;
priv->mapcount = 0;
- if(priv->video_fd!=-1)v4l2_close(priv->video_fd); priv->video_fd = -1;
+ if(priv->video_fd!=-1) {
+ v4l2_close(priv->video_fd);
+ priv->video_fd = -1;
+ }
free(priv->video_dev); priv->video_dev = NULL;
if (priv->video_ringbuffer) {