1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

fix a crash at v4l2 uninit

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15988 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
aurel 2005-07-17 00:41:29 +00:00
parent 3d00641549
commit e712dd1854

View File

@ -893,7 +893,7 @@ static int uninit(priv_t *priv)
}
/* 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);