diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-05 22:23:30 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-03-05 22:23:30 +0000 |
commit | f6687e7a78e47ad9814a73dc499ae16536371b23 (patch) | |
tree | 07f80386e96300cf1e1306ceb8cb0dc749ed5920 /libmpdemux | |
parent | 4fadeb9c2bc9b216402e528adf56c819f74df47a (diff) |
removed unused definition of insertRTPData(); it's not only unused,
but conceptually wrong as it passed extradata as first demux_packet
to the corresponding demux_stream. Patch by Carl Eugen Hoyos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22472 b3059339-0415-0410-9bf9-f77b7e298cf2
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 |