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

Fix ftl file local timestamps

parent 7b026dc8
No related branches found
No related tags found
1 merge request!316Resolves #343 GUI and Frame Refactor
Pipeline #28567 passed
......@@ -130,6 +130,8 @@ static void waitTimePoint() {
now = get_time();
}
last_frame = now/mspf;
int64_t over = now - (last_frame*mspf);
if (over > 1) LOG(WARNING) << "Timer off by " << over << "ms";
}
void ftl::timer::setInterval(int ms) {
......
......@@ -206,7 +206,6 @@ void File::_patchPackets(ftl::codecs::StreamPacket &spkt, ftl::codecs::Packet &p
}
spkt.version = 5;
spkt.localTimestamp = spkt.timestamp;
// Fix for flags corruption
if (pkt.data.size() == 0) {
......@@ -247,6 +246,8 @@ bool File::tick(int64_t ts) {
auto &spkt = std::get<0>(*i);
auto &pkt = std::get<1>(*i);
spkt.localTimestamp = spkt.timestamp;
try {
cb_.trigger(spkt, pkt);
} catch (const ftl::exception &e) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment