mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove dead code
This commit is contained in:
parent
15bebb8fb6
commit
c4c1518709
|
@ -275,7 +275,6 @@ void CVideo::Stop()
|
|||
|
||||
if(m_HasAudio)
|
||||
CloseStream(&m_AudioStream);
|
||||
//fclose(m_dbgfile);
|
||||
|
||||
if(!(m_pFormat->flags & AVFMT_NOFILE))
|
||||
avio_closep(&m_pFormatContext->pb);
|
||||
|
@ -294,9 +293,6 @@ void CVideo::NextVideoFrameThread()
|
|||
{
|
||||
if(m_Recording)
|
||||
{
|
||||
// #ifdef CONF_PLATFORM_MACOS
|
||||
// CAutoreleasePool AutoreleasePool;
|
||||
// #endif
|
||||
m_VSeq += 1;
|
||||
if(m_VSeq >= 2)
|
||||
{
|
||||
|
@ -318,8 +314,6 @@ void CVideo::NextVideoFrameThread()
|
|||
}
|
||||
}
|
||||
|
||||
//dbg_msg("video_recorder", "vframe: %d", m_VideoStream.pEnc->FRAME_NUM);
|
||||
|
||||
// after reading the graphic libraries' frame buffer, go threaded
|
||||
{
|
||||
auto *pVideoThread = m_vVideoThreads[m_CurVideoThreadIndex].get();
|
||||
|
@ -344,9 +338,6 @@ void CVideo::NextVideoFrameThread()
|
|||
if(m_CurVideoThreadIndex == m_VideoThreads)
|
||||
m_CurVideoThreadIndex = 0;
|
||||
}
|
||||
|
||||
// sync_barrier();
|
||||
// m_Semaphore.signal();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -364,7 +355,6 @@ void CVideo::NextAudioFrameTimeline(ISoundMixFunc Mix)
|
|||
{
|
||||
if(m_Recording && m_HasAudio)
|
||||
{
|
||||
//if(m_VideoStream.pEnc->FRAME_NUM * (double)m_AudioStream.pEnc->sample_rate / m_FPS >= (double)m_AudioStream.pEnc->FRAME_NUM * m_AudioStream.pEnc->frame_size)
|
||||
double SamplesPerFrame = (double)m_AudioStream.pEnc->sample_rate / m_FPS;
|
||||
while(m_AudioStream.m_SamplesFrameCount >= m_AudioStream.m_SamplesCount)
|
||||
{
|
||||
|
@ -491,9 +481,6 @@ void CVideo::FillAudioFrame(size_t ThreadIndex)
|
|||
0 // align
|
||||
);
|
||||
|
||||
// dbg_msg("video_recorder", "DstNbSamples: %d", DstNbSamples);
|
||||
// fwrite(m_aBuffer, sizeof(short), 2048, m_dbgfile);
|
||||
|
||||
int Ret = av_frame_make_writable(m_AudioStream.m_vpFrames[ThreadIndex]);
|
||||
if(Ret < 0)
|
||||
{
|
||||
|
@ -709,7 +696,6 @@ bool CVideo::OpenAudio()
|
|||
pContext = m_AudioStream.pEnc;
|
||||
|
||||
/* open it */
|
||||
//m_dbgfile = fopen("/tmp/pcm_dbg", "wb");
|
||||
av_dict_copy(&pOptions, m_pOptDict, 0);
|
||||
Ret = avcodec_open2(pContext, m_pAudioCodec, &pOptions);
|
||||
av_dict_free(&pOptions);
|
||||
|
|
|
@ -88,7 +88,6 @@ private:
|
|||
int m_Width;
|
||||
int m_Height;
|
||||
char m_aName[256];
|
||||
//FILE *m_dbgfile;
|
||||
uint64_t m_VSeq = 0;
|
||||
uint64_t m_ASeq = 0;
|
||||
uint64_t m_Vframe;
|
||||
|
|
Loading…
Reference in a new issue