mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
zapit: allow to abort scan even if NIT never finishes
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1178 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include <zapit/scan.h>
|
#include <zapit/scan.h>
|
||||||
|
|
||||||
#define NIT_SIZE 1024
|
#define NIT_SIZE 1024
|
||||||
|
extern short abort_scan;
|
||||||
|
|
||||||
void *nit_thread(void * data)
|
void *nit_thread(void * data)
|
||||||
{
|
{
|
||||||
@@ -94,6 +95,10 @@ int parse_nit(t_satellite_position satellitePosition, freq_id_t freq)
|
|||||||
delete dmx;
|
delete dmx;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
if (abort_scan) {
|
||||||
|
ret = -1;
|
||||||
|
goto _return;
|
||||||
|
}
|
||||||
if(buffer[0] != 0x40)
|
if(buffer[0] != 0x40)
|
||||||
printf("[NIT] ******************************************* Bogus section received: 0x%x\n", buffer[0]);
|
printf("[NIT] ******************************************* Bogus section received: 0x%x\n", buffer[0]);
|
||||||
section_length = ((buffer[1] & 0x0F) << 8) + buffer[2];
|
section_length = ((buffer[1] & 0x0F) << 8) + buffer[2];
|
||||||
|
Reference in New Issue
Block a user