diff options
author | Ben Boeckel <mathstuf@gmail.com> | 2016-08-04 23:10:24 -0400 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-08-05 10:08:52 +0200 |
commit | fa7beaad1fa211c5654a17cc1b7cf0e63acc52b9 (patch) | |
tree | b93fff0bb2a781eafaa740799122cce7e02e9d65 | |
parent | 00091411ec91edbd5357dbba6feb4c08ddf6ac4f (diff) | |
download | mpv-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.c | 5 |
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) { |