tvheadend/tvheadend — pull request #110 by benkibbey (2012-08-05 12:51:29+00:00)
Title: epggrab pthread initialization

tvheadend segfaults after clicking the "map dvb services to channels" button after some services have been discovered. it happens only when parameters are empty (network="", provider="", service=""). i have traced the problem to pthread_cond_wait() in serviceprobe.c (about line 131):

while((sm = TAILQ_FIRST(&sq.sq_queue)) == NULL)
pthread_cond_wait(&sq.sq_cond, &sq.sq_mutex);

but am still unsure why. anyway, this PR is for epggrab initialization which I thought may be corrupting something somewhere. but its not. :|