mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
Remove global allchans, use CServiceManager.
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1649 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -28,10 +28,10 @@
|
||||
|
||||
#include <zapit/channel.h>
|
||||
#include <zapit/bouquets.h>
|
||||
#include <zapit/getservices.h>
|
||||
#include <cs_api.h>
|
||||
#include <system/configure_network.h>
|
||||
|
||||
extern tallchans allchans;
|
||||
extern CBouquetManager *g_bouquetManager;
|
||||
extern t_channel_id live_channel_id;
|
||||
|
||||
@@ -1065,15 +1065,11 @@ std::string CNeutrinoYParser::func_set_bouquet_edit_form(CyhookHandler *hh, std
|
||||
}
|
||||
ZapitChannelList Channels;
|
||||
Channels.clear();
|
||||
if (mode == CZapitClient::MODE_RADIO) {
|
||||
for (tallchans_iterator it = allchans.begin(); it != allchans.end(); it++)
|
||||
if (it->second.getServiceType() == ST_DIGITAL_RADIO_SOUND_SERVICE)
|
||||
Channels.push_back(&(it->second));
|
||||
} else {
|
||||
for (tallchans_iterator it = allchans.begin(); it != allchans.end(); it++)
|
||||
if (it->second.getServiceType() != ST_DIGITAL_RADIO_SOUND_SERVICE)
|
||||
Channels.push_back(&(it->second));
|
||||
}
|
||||
if (mode == CZapitClient::MODE_RADIO)
|
||||
CServiceManager::getInstance()->GetAllRadioChannels(Channels);
|
||||
else
|
||||
CServiceManager::getInstance()->GetAllTvChannels(Channels);
|
||||
|
||||
sort(Channels.begin(), Channels.end(), CmpChannelByChName());
|
||||
|
||||
for (int i = 0; i < (int) Channels.size(); i++) {
|
||||
|
Reference in New Issue
Block a user