Extract sc_delay_buffer

A video buffer had 2 responsibilities:
 - handle the frame delaying mechanism (queuing packets and pushing them
   after the expected delay);
 - keep only the most recent frame (using a sc_frame_buffer).

In order to be able to reuse only the frame delaying mechanism, extract
it to a separate component, sc_delay_buffer.
This commit is contained in:
Romain Vimont
2023-03-02 00:31:43 +01:00
parent 6379c08012
commit f410f2bdc4
5 changed files with 337 additions and 229 deletions

View File

@@ -10,6 +10,7 @@ src = [
'src/control_msg.c',
'src/controller.c',
'src/decoder.c',
'src/delay_buffer.c',
'src/demuxer.c',
'src/device_msg.c',
'src/icon.c',