Introduce packet source trait

There was a packet sink trait, implemented by components able to
receive AVPackets, but each packet source had to manually send packets
to sinks.

In order to mutualise sink management, add a packet source trait.
This commit is contained in:
Romain Vimont
2023-03-02 09:07:25 +01:00
parent f410f2bdc4
commit c39054a63d
3 changed files with 112 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ src = [
'src/server.c',
'src/version.c',
'src/video_buffer.c',
'src/trait/packet_source.c',
'src/util/acksync.c',
'src/util/bytebuf.c',
'src/util/file.c',