summaryrefslogtreecommitdiffstats
path: root/stream/tvi_v4l2.c
diff options
context:
space:
mode:
authorBen Boeckel <mathstuf@gmail.com>2016-08-04 23:10:50 -0400
committerwm4 <wm4@nowhere>2016-08-05 10:08:57 +0200
commit0c4a73fa21d397a46ccc4a9892be9207091fc7b9 (patch)
treee207a18b0f8456c85a4d866c2ad771367796854a /stream/tvi_v4l2.c
parentfa7beaad1fa211c5654a17cc1b7cf0e63acc52b9 (diff)
downloadmpv-0c4a73fa21d397a46ccc4a9892be9207091fc7b9.tar.bz2
mpv-0c4a73fa21d397a46ccc4a9892be9207091fc7b9.tar.xz
tvi_v4l2: fix style in the uninit function
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++) {