From 34a57f0ec5b6a1abe6be2a36118dd7cc0ee334da Mon Sep 17 00:00:00 2001 From: rtogni Date: Tue, 9 Jan 2007 21:32:25 +0000 Subject: Don't drop last rdt packet on eof git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21860 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/realrtsp/real.c | 1 + stream/realrtsp/real.h | 2 ++ 2 files changed, 3 insertions(+) (limited to 'stream/realrtsp') diff --git a/stream/realrtsp/real.c b/stream/realrtsp/real.c index 3ad4fa9a7f..99f203a3a6 100644 --- a/stream/realrtsp/real.c +++ b/stream/realrtsp/real.c @@ -649,6 +649,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; return real_rtsp_session; } diff --git a/stream/realrtsp/real.h b/stream/realrtsp/real.h index 447bb30de9..4abc58cbd1 100644 --- a/stream/realrtsp/real.h +++ b/stream/realrtsp/real.h @@ -45,6 +45,8 @@ struct real_rtsp_session_t { uint8_t header[HEADER_SIZE]; int header_len; int header_read; + + int rdteof; }; int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer); -- cgit v1.2.3