changeset 14214:b13b17e0640a

fix a segfault when calling loadfile during v4l2 playback
author aurel
date Wed, 22 Dec 2004 13:19:30 +0000
parents 3c56b18bbb0c
children 9c33810bbc7b
files libmpdemux/tvi_v4l2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tvi_v4l2.c	Wed Dec 22 00:12:00 2004 +0000
+++ b/libmpdemux/tvi_v4l2.c	Wed Dec 22 13:19:30 2004 +0000
@@ -838,7 +838,7 @@
     }
 
     /* stop audio thread */
-    if (!tv_param_noaudio) {
+    if (!tv_param_noaudio && !tv_param_immediate) {
 	pthread_join(priv->audio_grabber_thread, NULL);
 	pthread_mutex_destroy(&priv->skew_mutex);
     }