changeset 15987:51aafa55f44c

fix a crash at v4l2 uninit
author aurel
date Sun, 17 Jul 2005 00:41:29 +0000
parents 999f16654819
children e5013e6b6450
files libmpdemux/tvi_v4l2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tvi_v4l2.c	Sun Jul 17 00:18:42 2005 +0000
+++ b/libmpdemux/tvi_v4l2.c	Sun Jul 17 00:41:29 2005 +0000
@@ -893,7 +893,7 @@
     }
 
     /* stop audio thread */
-    if (!tv_param_noaudio) {
+    if (!tv_param_noaudio && priv->audio_grabber_thread) {
 	pthread_join(priv->audio_grabber_thread, NULL);
 	pthread_mutex_destroy(&priv->skew_mutex);
 	pthread_mutex_destroy(&priv->audio_mutex);