mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
Revert "getservices.cpp: fix e2tv streaming on cable boxes"
This reverts commit 9321aaada0
.
This commit is contained in:
@@ -245,7 +245,7 @@ CZapitChannel * CServiceManager::FindChannel48(const t_channel_id channel_id)
|
|||||||
{
|
{
|
||||||
for (channel_map_iterator_t it = allchans.begin(); it != allchans.end(); ++it) {
|
for (channel_map_iterator_t it = allchans.begin(); it != allchans.end(); ++it) {
|
||||||
if((it->second.getChannelID() & 0xFFFFFFFFFFFFULL) == (channel_id & 0xFFFFFFFFFFFFULL))
|
if((it->second.getChannelID() & 0xFFFFFFFFFFFFULL) == (channel_id & 0xFFFFFFFFFFFFULL))
|
||||||
return &(it->second);
|
return &it->second;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -254,19 +254,11 @@ CZapitChannel * CServiceManager::FindChannel48Pos(const t_channel_id channel_id,
|
|||||||
const t_satellite_position pos)
|
const t_satellite_position pos)
|
||||||
{
|
{
|
||||||
for (channel_map_iterator_t it = allchans.begin(); it != allchans.end(); ++it) {
|
for (channel_map_iterator_t it = allchans.begin(); it != allchans.end(); ++it) {
|
||||||
CZapitChannel &channel = it->second;
|
CZapitChannel *ret = &it->second;
|
||||||
if (CFrontend::isCable(channel.delsys))
|
if ((ret->getChannelID() & 0xFFFFFFFFFFFFULL) != (channel_id & 0xFFFFFFFFFFFFULL))
|
||||||
{
|
|
||||||
if ((channel.getChannelID() & 0xFFFFFFFFFFFFULL) == (channel_id & 0xFFFFFFFFFFFFULL))
|
|
||||||
return &channel;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if ((channel.getChannelID() & 0xFFFFFFFFFFFFULL) != (channel_id & 0xFFFFFFFFFFFFULL))
|
|
||||||
continue;
|
continue;
|
||||||
if (pos == channel.getSatellitePosition())
|
if (pos == ret->getSatellitePosition())
|
||||||
return &channel;
|
return ret;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user