-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/7.3-dev' into 7.3
- Loading branch information
Showing
81 changed files
with
16,052 additions
and
20,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
#include <dvbsi++/satellite_delivery_system_descriptor.h> | ||
#include <dvbsi++/s2_satellite_delivery_system_descriptor.h> | ||
#include <dirent.h> | ||
#include <lib/nav/core.h> | ||
|
||
/* | ||
* Copyright (C) 2017 Marcus Metzler <[email protected]> | ||
|
@@ -221,20 +222,35 @@ bool eDVBService::isCrypted() | |
|
||
int eDVBService::isPlayable(const eServiceReference &ref, const eServiceReference &ignore, bool simulate) | ||
{ | ||
eServiceReferenceDVB sRelayOrigSref; | ||
ePtr<iPlayableService> refCur; | ||
eNavigation::getInstance()->getCurrentService(refCur); | ||
ePtr<iServiceInformation> tmp_info; | ||
refCur->info(tmp_info); | ||
std::string ref_s = tmp_info->getInfoString(iServiceInformation::sServiceref); | ||
eServiceReferenceDVB currentlyPlaying = eServiceReferenceDVB(ref_s); | ||
bool res = currentlyPlaying.getSROriginal(sRelayOrigSref); | ||
|
||
ePtr<eDVBResourceManager> res_mgr; | ||
bool remote_fallback_enabled = eConfigManager::getConfigBoolValue("config.usage.remote_fallback_enabled", false); | ||
|
||
if (eDVBResourceManager::getInstance(res_mgr)) | ||
eDebug("[eDVBService] isPlayble... no res manager!!"); | ||
else | ||
{ | ||
eDVBChannelID chid, chid_ignore; | ||
eDVBChannelID chid, chid_ignore, chid_ignore_sr; | ||
int system; | ||
|
||
((const eServiceReferenceDVB&)ref).getChannelID(chid); | ||
((const eServiceReferenceDVB&)ignore).getChannelID(chid_ignore); | ||
|
||
if (res_mgr->canAllocateChannel(chid, chid_ignore, system, simulate)) | ||
if (res) { | ||
sRelayOrigSref.getChannelID(chid_ignore_sr); | ||
} else { | ||
chid_ignore_sr = eDVBChannelID(); | ||
} | ||
|
||
if (res_mgr->canAllocateChannel(chid, chid_ignore, chid_ignore_sr, system, simulate)) | ||
{ | ||
bool use_ci_assignment = eConfigManager::getConfigBoolValue("config.misc.use_ci_assignment", false); | ||
if (use_ci_assignment) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.