From b59db283559b45b184658664985ee791f5bf5d3e Mon Sep 17 00:00:00 2001 From: rtognimp Date: Fri, 6 Jan 2006 14:39:10 +0000 Subject: This patch makes real rtsp tell the server to deliver data at specified bandwidth, if bandwidth cmdline option is given. Also, if that's given, it uses it for sdp stream selection. If not given, the behavior is the same as before. It's used to implement something like turboplay in realplayer. Patch by Tomas Janousek >>> tomi (At) nomi (.) cz <<< git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17333 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/realrtsp/rtsp_session.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libmpdemux/realrtsp/rtsp_session.c') diff --git a/libmpdemux/realrtsp/rtsp_session.c b/libmpdemux/realrtsp/rtsp_session.c index 89cd140340..9a4d547d62 100644 --- a/libmpdemux/realrtsp/rtsp_session.c +++ b/libmpdemux/realrtsp/rtsp_session.c @@ -71,13 +71,12 @@ struct rtsp_session_s { }; //rtsp_session_t *rtsp_session_start(char *mrl) { -rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, int port, int *redir) { +rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, int port, int *redir, uint32_t bandwidth) { rtsp_session_t *rtsp_session=malloc(sizeof(rtsp_session_t)); char *server; char *mrl_line = NULL; rmff_header_t *h; - uint32_t bandwidth=10485800; rtsp_session->recv = xbuffer_init(BUF_SIZE); -- cgit v1.2.3