diff options
author | Josh Allmann <joshua.allmann@gmail.com> | 2010-08-29 10:25:16 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-08-29 10:25:16 +0000 |
commit | b20359f51a1c3be5603be9908061b27f883f9467 (patch) | |
tree | da33f81dcf80d66304bda521c18494945ee12b0b /libavformat/rtsp.h | |
parent | 682d28a965c859a8826c1b52c3437a6a0c4ab59f (diff) | |
download | ffmpeg-b20359f51a1c3be5603be9908061b27f883f9467.tar.gz |
rtsp: Return AVERROR_EOF when all streams have received an RTCP BYE packet
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24965 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r-- | libavformat/rtsp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h index 49dbfdef28..c6c3972576 100644 --- a/libavformat/rtsp.h +++ b/libavformat/rtsp.h @@ -303,6 +303,11 @@ typedef struct RTSPState { /** RTSP transport mode, such as plain or tunneled. */ enum RTSPControlTransport control_transport; + + /* Number of RTCP BYE packets the RTSP session has received. + * An EOF is propagated back if nb_byes == nb_streams. + * This is reset after a seek. */ + int nb_byes; } RTSPState; /** |