mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
fix record audio, thx TangoCash
Origin commit data
------------------
Commit: 8e7512455b
Author: BPanther <bpanther_ts@hotmail.com>
Date: 2021-02-08 (Mon, 08 Feb 2021)
This commit is contained in:
@@ -415,7 +415,7 @@ bool CRecordInstance::Update()
|
||||
|
||||
audio_pids.AudioPid = allpids.APIDs[i].pid;
|
||||
audio_pids.AudioPidName = allpids.APIDs[i].desc;
|
||||
audio_pids.atype = allpids.APIDs[i].is_ac3 ? 1 : allpids.APIDs[i].is_aac ? 5 : allpids.APIDs[i].is_eac3 ? 7 : 0;
|
||||
audio_pids.atype = allpids.APIDs[i].is_ac3 ? CZapitAudioChannel::AC3 : allpids.APIDs[i].is_aac ? CZapitAudioChannel::AAC : allpids.APIDs[i].is_eac3 ? CZapitAudioChannel::EAC3 : CZapitAudioChannel::MPEG;
|
||||
audio_pids.selected = 0;
|
||||
recMovieInfo->audioPids.push_back(audio_pids);
|
||||
}
|
||||
@@ -718,7 +718,7 @@ void CRecordInstance::FillMovieInfo(CZapitChannel * channel, APIDList & apid_lis
|
||||
if(allpids.APIDs[i].pid == it->apid) {
|
||||
audio_pids.AudioPid = allpids.APIDs[i].pid;
|
||||
audio_pids.AudioPidName = allpids.APIDs[i].desc;
|
||||
audio_pids.atype = allpids.APIDs[i].is_ac3 ? 1 : allpids.APIDs[i].is_aac ? 5 : allpids.APIDs[i].is_eac3 ? 7 : 0;
|
||||
audio_pids.atype = allpids.APIDs[i].is_ac3 ? CZapitAudioChannel::AC3 : allpids.APIDs[i].is_aac ? CZapitAudioChannel::AAC : allpids.APIDs[i].is_eac3 ? CZapitAudioChannel::EAC3 : CZapitAudioChannel::MPEG;
|
||||
audio_pids.selected = (audio_pids.AudioPid == channel->getAudioPid()) ? 1 : 0;
|
||||
recMovieInfo->audioPids.push_back(audio_pids);
|
||||
}
|
||||
@@ -729,7 +729,7 @@ void CRecordInstance::FillMovieInfo(CZapitChannel * channel, APIDList & apid_lis
|
||||
int i = 0;
|
||||
audio_pids.AudioPid = allpids.APIDs[i].pid;
|
||||
audio_pids.AudioPidName = allpids.APIDs[i].desc;
|
||||
audio_pids.atype = allpids.APIDs[i].is_ac3 ? 1 : allpids.APIDs[i].is_aac ? 5 : allpids.APIDs[i].is_eac3 ? 7 : 0;
|
||||
audio_pids.atype = allpids.APIDs[i].is_ac3 ? CZapitAudioChannel::AC3 : allpids.APIDs[i].is_aac ? CZapitAudioChannel::AAC : allpids.APIDs[i].is_eac3 ? CZapitAudioChannel::EAC3 : CZapitAudioChannel::MPEG;
|
||||
audio_pids.selected = 1;
|
||||
recMovieInfo->audioPids.push_back(audio_pids);
|
||||
}
|
||||
@@ -2133,17 +2133,17 @@ void CStreamRec::FillMovieInfo(CZapitChannel * /*channel*/, APIDList & /*apid_li
|
||||
}
|
||||
switch(codec->codec_id) {
|
||||
case AV_CODEC_ID_AC3:
|
||||
audio_pids.atype = 1;
|
||||
audio_pids.atype = CZapitAudioChannel::AC3;
|
||||
break;
|
||||
case AV_CODEC_ID_AAC:
|
||||
audio_pids.atype = 5;
|
||||
audio_pids.atype = CZapitAudioChannel::AAC;
|
||||
break;
|
||||
case AV_CODEC_ID_EAC3:
|
||||
audio_pids.atype = 7;
|
||||
audio_pids.atype = CZapitAudioChannel::EAC3;
|
||||
break;
|
||||
case AV_CODEC_ID_MP2:
|
||||
default:
|
||||
audio_pids.atype = 0;
|
||||
audio_pids.atype = CZapitAudioChannel::MPEG;
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user