changeset 10477:c34185f47b62

Added support for checking whether a RTP demuxer contains combined audio_video data.
author rsf
date Sun, 27 Jul 2003 10:15:10 +0000
parents 1bc3ac054b08
children b0d0aa726417
files libmpdemux/demux_rtp.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rtp.cpp	Sun Jul 27 10:13:26 2003 +0000
+++ b/libmpdemux/demux_rtp.cpp	Sun Jul 27 10:15:10 2003 +0000
@@ -263,6 +263,13 @@
   return (rtpState->flags&RTPSTATE_IS_MPEG12_VIDEO) != 0;
 }
 
+extern "C" int demux_is_multiplexed_rtp_stream(demuxer_t* demuxer) {
+  // Get the RTP state that was stored in the demuxer's 'priv' field:
+  RTPState* rtpState = (RTPState*)(demuxer->priv);
+
+  return (rtpState->flags&RTPSTATE_IS_MULTIPLEXED) != 0;
+}
+
 static demux_packet_t* getBuffer(demuxer_t* demuxer, demux_stream_t* ds,
 				 Boolean mustGetNewData,
 				 float& ptsBehind); // forward