summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.h
diff options
context:
space:
mode:
authorJohn Brooks <john.brooks@bluecherry.net>2011-10-29 15:41:24 -0600
committerMartin Storsjö <martin@martin.st>2011-11-02 21:37:46 +0200
commitf011fcd67edf27d2b1f6fcdff0b4c19da36176e9 (patch)
treee420254715f1c5a3362a5389f6e89cd935fdd3dd /libavformat/rtsp.h
parent20e081dddcffa6eec459d695f3850796d1bdd7f7 (diff)
rtsp: add allowed_media_types option
Streams from RTSP or SDP that do not match an allowed type will be skipped entirely, which allows video-only or audio-only streaming from servers that provide both. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.h')
-rw-r--r--libavformat/rtsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index 7143acbe4f..45b0032797 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -354,6 +354,11 @@ typedef struct RTSPState {
* Various option flags for the RTSP muxer/demuxer.
*/
int rtsp_flags;
+
+ /**
+ * Mask of all requested media types
+ */
+ int media_type_mask;
} RTSPState;
#define RTSP_FLAG_FILTER_SRC 0x1 /**< Filter incoming UDP packets -