Skip to content

Commit

Permalink
flush data each frame
Browse files Browse the repository at this point in the history
  • Loading branch information
henkwiedig committed Feb 20, 2025
1 parent 929df97 commit 68b7915
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions osd/util/subtitle.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ void write_srt_file() {
remove_control_codes(ready_osdmsg);
fprintf(srt_file, "%s\n\n", ready_osdmsg);
}
fflush(srt_file);

// Increment the sequence number and update the last FlightTime written
sequence_number++;
last_flight_time = current_flight_time_seconds;
Expand All @@ -149,6 +151,7 @@ void handle_osd_out() {
fwrite(&character_map[x][y], sizeof(uint16_t), 1, osd_file);
}
}
fflush(osd_file);
}
}

Expand Down

0 comments on commit 68b7915

Please sign in to comment.