Move previous packet to a local variable

It is only used from run_recorder().
This commit is contained in:
Romain Vimont
2023-02-17 09:01:48 +01:00
parent 83c20a10db
commit 37c9c3cb50
2 changed files with 8 additions and 12 deletions

View File

@@ -34,12 +34,6 @@ struct sc_recorder {
bool stopped; // set on recorder_close()
bool failed; // set on packet write failure
struct sc_recorder_queue queue;
// we can write a packet only once we received the next one so that we can
// set its duration (next_pts - current_pts)
// "previous" is only accessed from the recorder thread, so it does not
// need to be protected by the mutex
struct sc_record_packet *previous;
};
bool