Skip to content
Snippets Groups Projects
Commit a92429f6 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Re add periodic iframe

parent 14760f12
No related branches found
No related tags found
1 merge request!212Major refactor of frame streaming
Pipeline #18122 canceled
......@@ -166,8 +166,8 @@ void Sender::post(const ftl::rgbd::FrameSet &fs) {
if (enc) {
// FIXME: Timestamps may not always be aligned to interval.
//if (do_inject || fs.timestamp % (10*ftl::timer::getInterval()) == 0) enc->reset();
if (do_inject) enc->reset();
if (do_inject || fs.timestamp % (10*ftl::timer::getInterval()) == 0) enc->reset();
//if (do_inject) enc->reset();
try {
enc->encode(frame.get<cv::cuda::GpuMat>(c), 0, [this,&spkt](const ftl::codecs::Packet &pkt){
stream_->post(spkt, pkt);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment