avformat/tee: Refactor close_slaves function in tee muxer
authorJan Sebechlebsky <sebechlebskyjan@gmail.com>
Tue, 12 Apr 2016 17:46:27 +0000 (20:46 +0300)
committerMarton Balint <cus@passwd.hu>
Wed, 13 Apr 2016 22:49:11 +0000 (00:49 +0200)
commit2ea5ab6fc6b1b453791eb3c62e7205a66d339299
tree874613ee74c7a51f3dd8f2ec245ef73f02d852b8
parent949444348b752664243681625f9f1d2c55b6dfaa
avformat/tee: Refactor close_slaves function in tee muxer

Closing single slave operation is pulled out into separate
function close_slave(TeeSlave*).
Both close_slave and close_slaves function are moved before
open_slave function.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/tee.c