mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
fix pmt update
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1433 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Commit: 5b03f2b747
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-05-06 (Fri, 06 May 2011)
Origin message was:
------------------
-fix pmt update
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1433 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -2274,15 +2274,27 @@ int zapit_main_thread(void *data)
|
|||||||
if (pmt_update_fd != -1) {
|
if (pmt_update_fd != -1) {
|
||||||
unsigned char buf[4096];
|
unsigned char buf[4096];
|
||||||
int ret = pmtDemux->Read(buf, 4095, 10);
|
int ret = pmtDemux->Read(buf, 4095, 10);
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
#if HAVE_TRIPLEDRAGON
|
#if HAVE_TRIPLEDRAGON
|
||||||
pmt_stop_update_filter(&pmt_update_fd);
|
pmt_stop_update_filter(&pmt_update_fd);
|
||||||
#endif
|
#endif
|
||||||
printf("[zapit] pmt updated, sid 0x%x new version 0x%x\n", (buf[3] << 8) + buf[4], (buf[5] >> 1) & 0x1F);
|
printf("[zapit] pmt updated, sid 0x%x new version 0x%x\n", (buf[3] << 8) + buf[4], (buf[5] >> 1) & 0x1F);
|
||||||
zapit(g_current_channel->getChannelID(), current_is_nvod, true);
|
if(g_current_channel) {
|
||||||
|
int vpid = g_current_channel->getVideoPid();
|
||||||
|
parse_pmt(g_current_channel);
|
||||||
|
if(vpid != g_current_channel->getVideoPid()) {
|
||||||
|
zapit(g_current_channel->getChannelID(), current_is_nvod, true);
|
||||||
|
} else {
|
||||||
|
if(event_mode) {
|
||||||
|
t_channel_id channel_id = g_current_channel->getChannelID();
|
||||||
|
eventServer->sendEvent(CZapitClient::EVT_PMT_CHANGED, CEventServer::INITID_ZAPIT, &channel_id, sizeof(channel_id));
|
||||||
|
}
|
||||||
|
start_camd(true);
|
||||||
|
pmt_set_update_filter(g_current_channel, &pmt_update_fd);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/* yuck, don't waste that much cpu time :) */
|
/* yuck, don't waste that much cpu time :) */
|
||||||
usleep(0);
|
usleep(0);
|
||||||
#if 0
|
#if 0
|
||||||
|
Reference in New Issue
Block a user