Skip to content

Commit

Permalink
e4hdultra: fix pip/hdr problem
Browse files Browse the repository at this point in the history
  • Loading branch information
BPanther committed Oct 5, 2023
1 parent b902e6f commit 6bb53b2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/neutrino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4393,7 +4393,7 @@ void CNeutrinoApp::tvMode( bool rezap )
videoDecoder->Standby(false);
}

#ifdef ENABLE_PIP
#if 0//def ENABLE_PIP
if (g_info.hw_caps->can_pip)
{
pipVideoDecoder[0]->Pig(g_settings.pip_x, g_settings.pip_y,
Expand Down Expand Up @@ -4660,7 +4660,7 @@ void CNeutrinoApp::radioMode( bool rezap)
videoDecoder->Standby(false);
}

#ifdef ENABLE_PIP
#if 0//def ENABLE_PIP
if (g_info.hw_caps->can_pip)
{
pipVideoDecoder[0]->Pig(g_settings.pip_radio_x, g_settings.pip_radio_y,
Expand Down
28 changes: 27 additions & 1 deletion src/zapit/src/zapit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,28 @@ bool CZapit::StopPip(int pip)
pipAudioDecoder[pip]->Stop();
pip_fe[pip] = NULL;
pip_channel_id[pip] = 0;

if (pipVideoDecoder[pip])
{
delete pipVideoDecoder[pip];
pipVideoDecoder[pip] = NULL;
}
if (pipVideoDemux[pip])
{
delete pipVideoDemux[pip];
pipVideoDemux[pip] = NULL;
}
if (pipAudioDecoder[pip])
{
delete pipAudioDecoder[pip];
pipAudioDecoder[pip] = NULL;
}
if (pipAudioDemux[pip])
{
delete pipAudioDemux[pip];
pipAudioDemux[pip] = NULL;
}

return true;
}
return false;
Expand All @@ -680,6 +702,10 @@ bool CZapit::StartPip(const t_channel_id channel_id, int pip)
if (!g_info.hw_caps->can_pip)
return false;

pipVideoDecoder[pip] = new cVideo(0, NULL, NULL, pip+1);
pipVideoDecoder[pip]->ShowPig(0);
pipAudioDecoder[pip] = new cAudio(0, NULL, NULL, pip+1);

CZapitChannel* newchannel;
bool transponder_change;
/* do lock if live is running, or in record mode -
Expand Down Expand Up @@ -2268,7 +2294,7 @@ bool CZapit::Start(Z_start_arg *ZapStart_arg)
videoDecoder->Standby(false);
audioDecoder = new cAudio(audioDemux->getBuffer(), videoDecoder->GetTVEnc(), NULL /*videoDecoder->GetTVEncSD()*/);

#ifdef ENABLE_PIP
#if 0//def ENABLE_PIP
if (g_info.hw_caps->can_pip)
{
for (unsigned i=0; i < (unsigned int) g_info.hw_caps->pip_devs; i++)
Expand Down

0 comments on commit 6bb53b2

Please sign in to comment.