Fix mplayer segfault when v4l driver initialization (at setting norm

stage) failed.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24787 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
voroshil 2007-10-14 17:56:29 +00:00
parent 2585d1e148
commit dde6ba8352
1 changed files with 3 additions and 1 deletions

View File

@ -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) {