1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-18 05:37:04 +00:00

tvi_v4l2: explicitly brace the code

It's fine either way, but this code is weirdly formatted. Make it more
explicit.
This commit is contained in:
Ben Boeckel 2016-08-04 23:10:24 -04:00 committed by wm4
parent 00091411ec
commit fa7beaad1f

View File

@ -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) {