From 0c4a73fa21d397a46ccc4a9892be9207091fc7b9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 4 Aug 2016 23:10:50 -0400 Subject: tvi_v4l2: fix style in the uninit function --- stream/tvi_v4l2.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'stream') diff --git a/stream/tvi_v4l2.c b/stream/tvi_v4l2.c index 1f3ba45895..ae651f00e1 100644 --- a/stream/tvi_v4l2.c +++ b/stream/tvi_v4l2.c @@ -1003,13 +1003,15 @@ static int uninit(priv_t *priv) set_mute(priv, 1); /* free memory and close device */ - free(priv->map); priv->map = NULL; + free(priv->map); + priv->map = NULL; priv->mapcount = 0; - if(priv->video_fd!=-1) { + if (priv->video_fd != -1) { v4l2_close(priv->video_fd); - priv->video_fd = -1; + priv->video_fd = -1; } - free(priv->video_dev); priv->video_dev = NULL; + free(priv->video_dev); + priv->video_dev = NULL; if (priv->video_ringbuffer) { for (int n = 0; n < priv->video_buffer_size_current; n++) { -- cgit v1.2.3