summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_rtp.cpp
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-29 12:54:00 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-05-29 12:54:00 +0000
commit83b3c822becab58bdf25bcef7c247d674908ddcb (patch)
treeeaf10adfc92fb90f5a69f642be7c1e10a5beb060 /libmpdemux/demux_rtp.cpp
parentc1bd86b4cdeb863282fe5ae1399d8d1ea68c9496 (diff)
downloadmpv-83b3c822becab58bdf25bcef7c247d674908ddcb.tar.bz2
mpv-83b3c822becab58bdf25bcef7c247d674908ddcb.tar.xz
ported all network streams to the new API
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15586 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/demux_rtp.cpp')
-rw-r--r--libmpdemux/demux_rtp.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp
index 66dea7120e..ba12929096 100644
--- a/libmpdemux/demux_rtp.cpp
+++ b/libmpdemux/demux_rtp.cpp
@@ -16,38 +16,6 @@ extern "C" {
#include "GroupsockHelper.hh"
#include <unistd.h>
-extern "C" stream_t* stream_open_sdp(int fd, off_t fileSize,
- int* file_format) {
- *file_format = DEMUXER_TYPE_RTP;
- stream_t* newStream = NULL;
- do {
- char* sdpDescription = (char*)malloc(fileSize+1);
- if (sdpDescription == NULL) break;
-
- ssize_t numBytesRead = read(fd, sdpDescription, fileSize);
- if (numBytesRead != fileSize) break;
- sdpDescription[fileSize] = '\0'; // to be safe
-
- newStream = (stream_t*)calloc(sizeof (stream_t), 1);
- if (newStream == NULL) break;
-
- // Store the SDP description in the 'priv' field, for later use:
- newStream->priv = sdpDescription;
- } while (0);
- return newStream;
-}
-
-extern "C" int _rtsp_streaming_seek(int /*fd*/, off_t /*pos*/,
- streaming_ctrl_t* /*streaming_ctrl*/) {
- return -1; // For now, we don't handle RTSP stream seeking
-}
-
-extern "C" int rtsp_streaming_start(stream_t* stream) {
- stream->streaming_ctrl->streaming_seek = _rtsp_streaming_seek;
-
- return 0;
-}
-
// A data structure representing input data for each stream:
class ReadBufferQueue {
public: