Mercurial > mplayer.hg
comparison libmpdemux/realrtsp/rtsp_session.c @ 17332:88adbc28f60b
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 <<<
author | rtognimp |
---|---|
date | Fri, 06 Jan 2006 14:39:10 +0000 |
parents | 929af3b49c8e |
children | 2518f4341587 |
comparison
equal
deleted
inserted
replaced
17331:7a718d3fd1fd | 17332:88adbc28f60b |
---|---|
69 int header_read; | 69 int header_read; |
70 | 70 |
71 }; | 71 }; |
72 | 72 |
73 //rtsp_session_t *rtsp_session_start(char *mrl) { | 73 //rtsp_session_t *rtsp_session_start(char *mrl) { |
74 rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, int port, int *redir) { | 74 rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, int port, int *redir, uint32_t bandwidth) { |
75 | 75 |
76 rtsp_session_t *rtsp_session=malloc(sizeof(rtsp_session_t)); | 76 rtsp_session_t *rtsp_session=malloc(sizeof(rtsp_session_t)); |
77 char *server; | 77 char *server; |
78 char *mrl_line = NULL; | 78 char *mrl_line = NULL; |
79 rmff_header_t *h; | 79 rmff_header_t *h; |
80 uint32_t bandwidth=10485800; | |
81 | 80 |
82 rtsp_session->recv = xbuffer_init(BUF_SIZE); | 81 rtsp_session->recv = xbuffer_init(BUF_SIZE); |
83 | 82 |
84 //connect: | 83 //connect: |
85 *redir = 0; | 84 *redir = 0; |