mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
src/gui/adzap.cpp init before use
This commit is contained in:
@@ -66,15 +66,16 @@ CAdZapMenu::CAdZapMenu()
|
|||||||
|
|
||||||
sem_init(&sem, 0, 0);
|
sem_init(&sem, 0, 0);
|
||||||
|
|
||||||
|
channelId = -1;
|
||||||
|
armed = false;
|
||||||
|
monitor = false;
|
||||||
|
alerted = false;
|
||||||
|
|
||||||
pthread_t thr;
|
pthread_t thr;
|
||||||
if (pthread_create(&thr, 0, CAdZapMenu::Run, this))
|
if (pthread_create(&thr, 0, CAdZapMenu::Run, this))
|
||||||
fprintf(stderr, "ERROR: pthread_create(CAdZapMenu::CAdZapMenu)\n");
|
fprintf(stderr, "ERROR: pthread_create(CAdZapMenu::CAdZapMenu)\n");
|
||||||
else
|
else
|
||||||
pthread_detach(thr);
|
pthread_detach(thr);
|
||||||
channelId = -1;
|
|
||||||
armed = false;
|
|
||||||
monitor = false;
|
|
||||||
alerted = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool sortByDateTime(const CChannelEvent & a, const CChannelEvent & b)
|
static bool sortByDateTime(const CChannelEvent & a, const CChannelEvent & b)
|
||||||
|
Reference in New Issue
Block a user