access_out: srt: refactor to support connection recovery
authorJustin Kim <justin.kim@collabora.com>
Wed, 28 Mar 2018 10:29:44 +0000 (19:29 +0900)
committerThomas Guillem <thomas@gllm.fr>
Wed, 28 Mar 2018 12:00:10 +0000 (14:00 +0200)
commit867f005c508b1d38058d38761e5ca9273bed3a82
tree5bf63766cbd2eca10fc17e28a2c1846b171c5ef6
parentdeeaf49d9cc2d3d618c9790586839179f6d51ef7
access_out: srt: refactor to support connection recovery

This is a refactoring code to support SRT connection recovery.
While doing this work, SRT modules support new features comparing
to the previous ones.

 - Connection Recovery
   When lost a SRT connection, this module can detect and try to re-connect.

 - Interruptible by SRT APIs
   'srt_epoll_wait' will be interrupted when all socket descriptors
   are removed from its montoring list. Fortunately, SRT modules are using
   only one socket.

 - Platform Independent
   Now, SRT modules no longer require to use a pipe. Therfore, from this version,
   SRT modules can support Win32 platforms.

Based on code from:
Roman Diouskine <rdiouskine@haivision.com>

Signed-off-by: Justin Kim <justin.kim@collabora.com>
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
modules/access_output/Makefile.am
modules/access_output/srt.c