From ef4a45551be048c38b1a2da67569f4626a74e399 Mon Sep 17 00:00:00 2001 From: rtogni Date: Sun, 18 Feb 2007 15:57:50 +0000 Subject: Add support for smil playlist served over realrtsp (audio and video playback only, not full smil support) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22260 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/realrtsp/real.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'stream/realrtsp/real.c') diff --git a/stream/realrtsp/real.c b/stream/realrtsp/real.c index 23fb74f0b3..ec75b3ea57 100644 --- a/stream/realrtsp/real.c +++ b/stream/realrtsp/real.c @@ -342,7 +342,7 @@ static rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t b return header; } -int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer) { +int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer, int rdt_rawdata) { int n=1; uint8_t header[8]; @@ -414,6 +414,10 @@ int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer) { else ph.flags=0; *buffer = xbuffer_ensure_size(*buffer, 12+size); + if(rdt_rawdata) { + n=rtsp_read_data(rtsp_session, *buffer, size-12); + return (n <= 0) ? 0 : n; + } rmff_dump_pheader(&ph, *buffer); size-=12; n=rtsp_read_data(rtsp_session, (*buffer)+12, size); @@ -650,6 +654,7 @@ init_real_rtsp_session (void) real_rtsp_session = malloc (sizeof (struct real_rtsp_session_t)); real_rtsp_session->recv = xbuffer_init (BUF_SIZE); real_rtsp_session->rdteof = 0; + real_rtsp_session->rdt_rawdata = 0; return real_rtsp_session; } -- cgit v1.2.3