mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-11 23:50:58 +02:00
fix Freesat-EPG, thx Houdini & bazi98
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1486 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 90c5683746
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-05-23 (Mon, 23 May 2011)
Origin message was:
------------------
-fix Freesat-EPG, thx Houdini & bazi98
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1486 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -390,6 +390,7 @@ std::string SIsectionEIT::freesatHuffmanDecode(std::string input)
|
|||||||
return uncompressed;
|
return uncompressed;
|
||||||
}
|
}
|
||||||
} while (lastch != STOP && value != 0);
|
} while (lastch != STOP && value != 0);
|
||||||
|
|
||||||
uncompressed.resize(p);
|
uncompressed.resize(p);
|
||||||
return uncompressed;
|
return uncompressed;
|
||||||
}
|
}
|
||||||
@@ -421,8 +422,10 @@ void SIsectionEIT::parseShortEventDescriptor(const char *buf, SIevent &e, unsign
|
|||||||
#endif // 0
|
#endif // 0
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_FREESATEPG
|
#ifdef ENABLE_FREESATEPG
|
||||||
// FIXME convertDVBUTF8
|
// e.setName(language, buf[0] == 0x1f ? freesatHuffmanDecode(std::string(buf, evt->event_name_length)) : std::string(buf, evt->event_name_length));
|
||||||
e.setName(language, buf[0] == 0x1f ? freesatHuffmanDecode(std::string(buf, evt->event_name_length)) : std::string(buf, evt->event_name_length));
|
|
||||||
|
std::string tmp_str = buf[0] == 0x1f ? freesatHuffmanDecode(std::string(buf, evt->event_name_length)) : std::string(buf, evt->event_name_length);
|
||||||
|
e.setName(language, convertDVBUTF8(tmp_str.c_str(), tmp_str.size(), table, tsidonid));
|
||||||
#else
|
#else
|
||||||
//e.setName(language, std::string(buf, evt->event_name_length));
|
//e.setName(language, std::string(buf, evt->event_name_length));
|
||||||
e.setName(language, convertDVBUTF8(buf, evt->event_name_length, table, tsidonid));
|
e.setName(language, convertDVBUTF8(buf, evt->event_name_length, table, tsidonid));
|
||||||
@@ -443,7 +446,9 @@ void SIsectionEIT::parseShortEventDescriptor(const char *buf, SIevent &e, unsign
|
|||||||
#endif // 0
|
#endif // 0
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_FREESATEPG
|
#ifdef ENABLE_FREESATEPG
|
||||||
e.setText(language, buf[1] == 0x1f ? freesatHuffmanDecode(std::string(++buf, textlength)) : std::string(++buf, textlength));
|
// e.setText(language, buf[1] == 0x1f ? freesatHuffmanDecode(std::string(++buf, textlength)) : std::string(++buf, textlength));
|
||||||
|
std::string tmp_str = buf[1] == 0x1f ? freesatHuffmanDecode(std::string(++buf, textlength)) : std::string(++buf, textlength);
|
||||||
|
e.setText(language, convertDVBUTF8(tmp_str.c_str(), tmp_str.size(), table, tsidonid));
|
||||||
#else
|
#else
|
||||||
//e.setText(language, std::string(++buf, textlength));
|
//e.setText(language, std::string(++buf, textlength));
|
||||||
e.setText(language, convertDVBUTF8((++buf), textlength, table, tsidonid));
|
e.setText(language, convertDVBUTF8((++buf), textlength, table, tsidonid));
|
||||||
|
@@ -2739,8 +2739,13 @@ static void commandDumpStatusInformation(int /*connfd*/, char* /*data*/, const u
|
|||||||
"Total size of memory occupied by chunks\n"
|
"Total size of memory occupied by chunks\n"
|
||||||
"handed out by malloc: %d (%dkb)\n"
|
"handed out by malloc: %d (%dkb)\n"
|
||||||
"Total bytes memory allocated with `sbrk' by malloc,\n"
|
"Total bytes memory allocated with `sbrk' by malloc,\n"
|
||||||
"in bytes: %d (%dkb)\n",
|
"in bytes: %d (%dkb)\n"
|
||||||
ctime(&zeit),
|
#ifdef ENABLE_FREESATEPG
|
||||||
|
"FreeSat enabled\n"
|
||||||
|
#else
|
||||||
|
""
|
||||||
|
#endif
|
||||||
|
,
|
||||||
secondsToCache / (60*60L), secondsExtendedTextCache / (60*60L), oldEventsAre / 60, anzServices, anzNVODservices, anzEvents, anzNVODevents, anzMetaServices,
|
secondsToCache / (60*60L), secondsExtendedTextCache / (60*60L), oldEventsAre / 60, anzServices, anzNVODservices, anzEvents, anzNVODevents, anzMetaServices,
|
||||||
// resourceUsage.ru_maxrss, resourceUsage.ru_ixrss, resourceUsage.ru_idrss, resourceUsage.ru_isrss,
|
// resourceUsage.ru_maxrss, resourceUsage.ru_ixrss, resourceUsage.ru_idrss, resourceUsage.ru_isrss,
|
||||||
speicherinfo.uordblks, speicherinfo.uordblks / 1024,
|
speicherinfo.uordblks, speicherinfo.uordblks / 1024,
|
||||||
@@ -7095,7 +7100,7 @@ static void *fseitThread(void *)
|
|||||||
|
|
||||||
dmxFSEIT.addfilter(0x60, 0xfe); //other TS, scheduled, freesat epg is only broadcast using table_ids 0x60 (scheduled) and 0x61 (scheduled later)
|
dmxFSEIT.addfilter(0x60, 0xfe); //other TS, scheduled, freesat epg is only broadcast using table_ids 0x60 (scheduled) and 0x61 (scheduled later)
|
||||||
|
|
||||||
if (debug) {
|
if (sections_debug) {
|
||||||
int policy;
|
int policy;
|
||||||
struct sched_param parm;
|
struct sched_param parm;
|
||||||
int rc = pthread_getschedparam(pthread_self(), &policy, &parm);
|
int rc = pthread_getschedparam(pthread_self(), &policy, &parm);
|
||||||
@@ -7221,11 +7226,12 @@ static void *fseitThread(void *)
|
|||||||
messaging_zap_detected = false;
|
messaging_zap_detected = false;
|
||||||
unlockMessaging();
|
unlockMessaging();
|
||||||
|
|
||||||
|
#ifdef UPDATE_NETWORKS
|
||||||
if (auto_scanning) {
|
if (auto_scanning) {
|
||||||
pthread_mutex_unlock( &dmxNIT.start_stop_mutex );
|
pthread_mutex_unlock( &dmxNIT.start_stop_mutex );
|
||||||
dmxNIT.change( 0 );
|
dmxNIT.change( 0 );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
struct timespec abs_wait;
|
struct timespec abs_wait;
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
gettimeofday(&now, NULL);
|
gettimeofday(&now, NULL);
|
||||||
|
Reference in New Issue
Block a user