diff options
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_rtp.cpp | 28 | ||||
-rw-r--r-- | libmpdemux/demux_rtp_internal.h | 4 |
2 files changed, 0 insertions, 32 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp index 1e3c59a464..ac1856b1fb 100644 --- a/libmpdemux/demux_rtp.cpp +++ b/libmpdemux/demux_rtp.cpp @@ -325,34 +325,6 @@ Boolean awaitRTPPacket(demuxer_t* demuxer, demux_stream_t* ds, return True; } -Boolean insertRTPData(demuxer_t* demuxer, demux_stream_t* ds, - unsigned char* data, unsigned dataLen) { - // Begin by finding the buffer queue that we want to add data to. - // (Get this from the RTP state, which we stored in - // the demuxer's 'priv' field) - RTPState* rtpState = (RTPState*)(demuxer->priv); - ReadBufferQueue* bufferQueue = NULL; - if (ds == demuxer->video) { - bufferQueue = rtpState->videoBufferQueue; - } else if (ds == demuxer->audio) { - bufferQueue = rtpState->audioBufferQueue; - } else { - fprintf(stderr, "(demux_rtp)insertRTPData: internal error: unknown stream\n"); - return False; - } - - if (data == NULL || dataLen == 0) return False; - - demux_packet_t* dp = new_demux_packet(dataLen); - if (dp == NULL) return False; - - // Copy our data into the buffer, and save it: - memmove(dp->buffer, data, dataLen); - dp->pts = 0; - bufferQueue->savePendingBuffer(dp); - return True; -} - static void teardownRTSPorSIPSession(RTPState* rtpState); // forward extern "C" void demux_close_rtp(demuxer_t* demuxer) { diff --git a/libmpdemux/demux_rtp_internal.h b/libmpdemux/demux_rtp_internal.h index 442935e72a..708b12e97c 100644 --- a/libmpdemux/demux_rtp_internal.h +++ b/libmpdemux/demux_rtp_internal.h @@ -36,8 +36,4 @@ Boolean awaitRTPPacket(demuxer_t* demuxer, demux_stream_t* ds, // "streamType": 0 => video; 1 => audio // This routine returns False if the input stream has closed -// A routine for adding our own data to an incoming RTP data stream: -Boolean insertRTPData(demuxer_t* demuxer, demux_stream_t* ds, - unsigned char* data, unsigned dataLen); - #endif |