addition to use autodetect pip

Origin commit data
------------------
Commit: 22a2b49710
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-05-29 (Sat, 29 May 2021)

Origin message was:
------------------
- addition to use autodetect pip
This commit is contained in:
vanhofen
2021-05-29 21:16:57 +02:00
parent 6d7d1ed37f
commit 094f24bd0a
2 changed files with 14 additions and 8 deletions

View File

@@ -4820,9 +4820,11 @@ void CNeutrinoApp::tvMode( bool rezap )
#ifdef ENABLE_PIP
if (g_info.hw_caps->can_pip)
{
pipDecoder->Pig(g_settings.pip_x, g_settings.pip_y,
g_settings.pip_width, g_settings.pip_height,
frameBuffer->getScreenWidth(true), frameBuffer->getScreenHeight(true));
}
#endif
#if 0
if(mode != NeutrinoModes::mode_ts /*&& autoshift*/) {
@@ -5102,9 +5104,11 @@ void CNeutrinoApp::radioMode( bool rezap)
#ifdef ENABLE_PIP
if (g_info.hw_caps->can_pip)
{
pipDecoder->Pig(g_settings.pip_radio_x, g_settings.pip_radio_y,
g_settings.pip_radio_width, g_settings.pip_radio_height,
frameBuffer->getScreenWidth(true), frameBuffer->getScreenHeight(true));
}
#endif
CRecordManager::getInstance()->StopAutoRecord();
@@ -5168,7 +5172,8 @@ void CNeutrinoApp::switchTvRadioMode(const int prev_mode)
#ifdef ENABLE_PIP
#if !HAVE_CST_HARDWARE && !HAVE_GENERIC_HARDWARE
void CNeutrinoApp::StartAVInputPiP() {
if (!g_info.hw_caps->can_pip) return;
if (!g_info.hw_caps->can_pip)
return;
if (!pipDemux) {
pipDemux = new cDemux(1);
@@ -5188,7 +5193,8 @@ void CNeutrinoApp::StartAVInputPiP() {
}
void CNeutrinoApp::StopAVInputPiP() {
if (!g_info.hw_caps->can_pip) return;
if (!g_info.hw_caps->can_pip)
return;
pipDecoder->ShowPig(0);
pipDemux->Stop();
@@ -5978,15 +5984,13 @@ void CNeutrinoApp::getAnnounceEpgName(CTimerd::RecordingInfo * eventinfo, std::s
bool CNeutrinoApp::StartPip(const t_channel_id channel_id)
{
bool ret = false;
if (!g_info.hw_caps->can_pip) return ret;
if (!g_info.hw_caps->can_pip)
return ret;
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(channel_id);
if (!channel)
return ret;
if (!g_info.hw_caps->can_pip)
return ret;
if (channel->getRecordDemux() == channel->getPipDemux())
CStreamManager::getInstance()->StopStream(channel_id);