mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
fix pip/cec problem
Origin commit data
------------------
Commit: 0b41940f3d
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2023-10-06 (Fri, 06 Oct 2023)
This commit is contained in:
@@ -714,16 +714,20 @@ bool CZapit::StopPip(int pip)
|
|||||||
INFO("[pip %d] stop %llx", pip, pip_channel_id[pip]);
|
INFO("[pip %d] stop %llx", pip, pip_channel_id[pip]);
|
||||||
pipVideoDecoder[pip]->ShowPig(0);
|
pipVideoDecoder[pip]->ShowPig(0);
|
||||||
CCamManager::getInstance()->Stop(pip_channel_id[pip], CCamManager::PIP);
|
CCamManager::getInstance()->Stop(pip_channel_id[pip], CCamManager::PIP);
|
||||||
|
|
||||||
pipVideoDemux[pip]->Stop();
|
pipVideoDemux[pip]->Stop();
|
||||||
pipVideoDecoder[pip]->Stop();
|
pipVideoDecoder[pip]->Stop();
|
||||||
pipVideoDecoder[pip]->setBlank(pip);
|
pipVideoDecoder[pip]->setBlank(pip);
|
||||||
pipAudioDemux[pip]->Stop();
|
pipAudioDemux[pip]->Stop();
|
||||||
pipAudioDecoder[pip]->Stop();
|
pipAudioDecoder[pip]->Stop();
|
||||||
|
|
||||||
pip_fe[pip] = NULL;
|
pip_fe[pip] = NULL;
|
||||||
pip_channel_id[pip] = 0;
|
pip_channel_id[pip] = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (pipVideoDecoder[pip])
|
if (pipVideoDecoder[pip])
|
||||||
{
|
{
|
||||||
|
pipVideoDecoder[pip]->closeDevice();
|
||||||
delete pipVideoDecoder[pip];
|
delete pipVideoDecoder[pip];
|
||||||
pipVideoDecoder[pip] = NULL;
|
pipVideoDecoder[pip] = NULL;
|
||||||
}
|
}
|
||||||
@@ -734,6 +738,7 @@ bool CZapit::StopPip(int pip)
|
|||||||
}
|
}
|
||||||
if (pipAudioDecoder[pip])
|
if (pipAudioDecoder[pip])
|
||||||
{
|
{
|
||||||
|
pipAudioDecoder[pip]->closeDevice();
|
||||||
delete pipAudioDecoder[pip];
|
delete pipAudioDecoder[pip];
|
||||||
pipAudioDecoder[pip] = NULL;
|
pipAudioDecoder[pip] = NULL;
|
||||||
}
|
}
|
||||||
@@ -743,10 +748,8 @@ bool CZapit::StopPip(int pip)
|
|||||||
pipAudioDemux[pip] = NULL;
|
pipAudioDemux[pip] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CZapit::StartPip(const t_channel_id channel_id, int pip)
|
bool CZapit::StartPip(const t_channel_id channel_id, int pip)
|
||||||
@@ -756,7 +759,11 @@ bool CZapit::StartPip(const t_channel_id channel_id, int pip)
|
|||||||
|
|
||||||
pipVideoDecoder[pip] = new cVideo(0, NULL, NULL, pip+1);
|
pipVideoDecoder[pip] = new cVideo(0, NULL, NULL, pip+1);
|
||||||
pipVideoDecoder[pip]->ShowPig(0);
|
pipVideoDecoder[pip]->ShowPig(0);
|
||||||
|
pipVideoDemux[pip] = new cDemux(pip+1);
|
||||||
|
pipVideoDemux[pip]->Open(DMX_VIDEO_CHANNEL);
|
||||||
pipAudioDecoder[pip] = new cAudio(0, NULL, NULL, pip+1);
|
pipAudioDecoder[pip] = new cAudio(0, NULL, NULL, pip+1);
|
||||||
|
pipAudioDemux[pip] = new cDemux(pip+1);
|
||||||
|
pipAudioDemux[pip]->Open(DMX_AUDIO_CHANNEL);
|
||||||
|
|
||||||
CZapitChannel* newchannel;
|
CZapitChannel* newchannel;
|
||||||
bool transponder_change;
|
bool transponder_change;
|
||||||
|
Reference in New Issue
Block a user