diff rtsp.h @ 6423:2685bf2b0b78 libavformat

rtsp: Return AVERROR_EOF when all streams have received an RTCP BYE packet Patch by Josh Allmann, joshua dot allmann at gmail
author mstorsjo
date Sun, 29 Aug 2010 10:25:16 +0000
parents 6d6b63b7e5e3
children 2e3e76e8ada4
line wrap: on
line diff
--- a/rtsp.h	Sun Aug 29 10:20:18 2010 +0000
+++ b/rtsp.h	Sun Aug 29 10:25:16 2010 +0000
@@ -303,6 +303,11 @@
 
     /** 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;
 
 /**