From: Jaroslav Kysela Date: Sun, 17 Dec 2017 17:37:21 +0000 (+0100) Subject: epggrab: fixes for latest changes (unitialized tailq, wrong condition variable) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38cb7b32218e9a14463f032d847e9efd15a9dac5;p=thirdparty%2Ftvheadend.git epggrab: fixes for latest changes (unitialized tailq, wrong condition variable) --- diff --git a/src/epggrab.c b/src/epggrab.c index e0c1bff60..86e8199a9 100644 --- a/src/epggrab.c +++ b/src/epggrab.c @@ -171,7 +171,7 @@ static void *_epggrab_data_thread( void *aux ) } if (eq == NULL) { while (atomic_get(&epggrab_running)) - pthread_cond_wait(&epggrab_cond, &epggrab_data_mutex); + pthread_cond_wait(&epggrab_data_cond, &epggrab_data_mutex); } } while (eq == NULL && atomic_get(&epggrab_running)); pthread_mutex_unlock(&epggrab_data_mutex); diff --git a/src/epggrab/module.c b/src/epggrab/module.c index 978e5e4b7..8a84c758c 100644 --- a/src/epggrab/module.c +++ b/src/epggrab/module.c @@ -334,6 +334,7 @@ epggrab_module_t *epggrab_module_create skel->name = strdup(name); skel->priority = priority; RB_INIT(&skel->channels); + TAILQ_INIT(&skel->data_queue); /* Insert */ assert(!epggrab_module_find_by_id(id));