summaryrefslogtreecommitdiffstats
path: root/stream/tvi_v4l2.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/tvi_v4l2.c')
-rw-r--r--stream/tvi_v4l2.c10
1 files changed, 6 insertions, 4 deletions
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++) {