comparison libmpdemux/tvi_v4l2.c @ 14214:b13b17e0640a

fix a segfault when calling loadfile during v4l2 playback
author aurel
date Wed, 22 Dec 2004 13:19:30 +0000
parents 2a9afbfc79d7
children 815f03b7cee5
comparison
equal deleted inserted replaced
14213:3c56b18bbb0c 14214:b13b17e0640a
836 info.short_name, strerror(errno)); 836 info.short_name, strerror(errno));
837 } 837 }
838 } 838 }
839 839
840 /* stop audio thread */ 840 /* stop audio thread */
841 if (!tv_param_noaudio) { 841 if (!tv_param_noaudio && !tv_param_immediate) {
842 pthread_join(priv->audio_grabber_thread, NULL); 842 pthread_join(priv->audio_grabber_thread, NULL);
843 pthread_mutex_destroy(&priv->skew_mutex); 843 pthread_mutex_destroy(&priv->skew_mutex);
844 } 844 }
845 845
846 if (priv->input.audioset) { 846 if (priv->input.audioset) {