diff options
Diffstat (limited to 'stream')
-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) { |