]> git.sesse.net Git - ffmpeg/commit
rtmp: Read and handle incoming packets while writing data
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 14 Jun 2012 13:28:40 +0000 (15:28 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 14 Jun 2012 19:22:58 +0000 (22:22 +0300)
commit7dc747f50b0adeaf2bcf6413e291dc4bffa54f9a
treeccdcab4a4c61542a0f84e7a504ee42435a60d375
parentd2d193c9b6963f3041ee0037c791c44453b845a0
rtmp: Read and handle incoming packets while writing data

This makes sure all incoming packets are read and handled (and reacted
to) while sending an FLV stream over RTMP to a server. If there were
enough incoming data to fill the TCP buffers, this could potentially
make things block at unexpected places. For the upcoming RTMPT support,
we need to consume all incoming data before we can send the next
request.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmppkt.c
libavformat/rtmppkt.h
libavformat/rtmpproto.c