mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-13 03:28:19 +00:00
remove first two frames to forbid from interface before playback being rendered to video
This commit is contained in:
parent
605da124d4
commit
e4fdeefdd4
|
@ -189,12 +189,17 @@ void CVideo::nextVideoFrame_thread()
|
||||||
// CAutoreleasePool AutoreleasePool;
|
// CAutoreleasePool AutoreleasePool;
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
m_VideoStream.frame->pts = m_VideoStream.enc->frame_number;
|
if(m_VideoStream.enc->frame_number >= 2)
|
||||||
dbg_msg("video_recorder", "vframe: %d", m_VideoStream.enc->frame_number);
|
{
|
||||||
|
m_VideoStream.frame->pts = m_VideoStream.enc->frame_number;
|
||||||
|
dbg_msg("video_recorder", "vframe: %d", m_VideoStream.enc->frame_number);
|
||||||
|
|
||||||
read_rgb_from_gl();
|
read_rgb_from_gl();
|
||||||
fill_video_frame();
|
fill_video_frame();
|
||||||
write_frame(&m_VideoStream);
|
write_frame(&m_VideoStream);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
m_VideoStream.enc->frame_number += 1;
|
||||||
|
|
||||||
m_ProcessingVideoFrame = false;
|
m_ProcessingVideoFrame = false;
|
||||||
m_NextFrame = false;
|
m_NextFrame = false;
|
||||||
|
|
Loading…
Reference in a new issue