summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/tvi_v4l.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/stream/tvi_v4l.c b/stream/tvi_v4l.c
index adbdf927c7..c21e13475e 100644
--- a/stream/tvi_v4l.c
+++ b/stream/tvi_v4l.c
@@ -693,7 +693,9 @@ static int uninit(priv_t *priv)
pthread_mutex_destroy(&priv->skew_mutex);
}
pthread_mutex_destroy(&priv->video_buffer_mutex);
- pthread_join(priv->video_grabber_thread, NULL);
+ if(priv->video_grabber_thread)
+ pthread_join(priv->video_grabber_thread, NULL);
+
mp_msg(MSGT_TV, MSGL_V, "done\n");
if (priv->capability.audios) {