Mercurial > mplayer.hg
comparison stream/librtsp/rtsp_session.c @ 20527:b8f069b793c2
Realrtsp authentication
author | rtogni |
---|---|
date | Mon, 30 Oct 2006 21:55:58 +0000 |
parents | c19e6c7487b1 |
children | 7c5e893dff54 |
comparison
equal
deleted
inserted
replaced
20526:d61a365dbe87 | 20527:b8f069b793c2 |
---|---|
72 struct real_rtsp_session_t* real_session; | 72 struct real_rtsp_session_t* real_session; |
73 struct rtp_rtsp_session_t* rtp_session; | 73 struct rtp_rtsp_session_t* rtp_session; |
74 }; | 74 }; |
75 | 75 |
76 //rtsp_session_t *rtsp_session_start(char *mrl) { | 76 //rtsp_session_t *rtsp_session_start(char *mrl) { |
77 rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, int port, int *redir, uint32_t bandwidth) { | 77 rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, |
78 int port, int *redir, uint32_t bandwidth, char *user, char *pass) { | |
78 | 79 |
79 rtsp_session_t *rtsp_session = NULL; | 80 rtsp_session_t *rtsp_session = NULL; |
80 char *server; | 81 char *server; |
81 char *mrl_line = NULL; | 82 char *mrl_line = NULL; |
82 rmff_header_t *h; | 83 rmff_header_t *h; |
109 } | 110 } |
110 if (strstr(server,RTSP_SERVER_TYPE_REAL) || strstr(server,RTSP_SERVER_TYPE_HELIX)) | 111 if (strstr(server,RTSP_SERVER_TYPE_REAL) || strstr(server,RTSP_SERVER_TYPE_HELIX)) |
111 { | 112 { |
112 /* we are talking to a real server ... */ | 113 /* we are talking to a real server ... */ |
113 | 114 |
114 h=real_setup_and_get_header(rtsp_session->s, bandwidth); | 115 h=real_setup_and_get_header(rtsp_session->s, bandwidth, user, pass); |
115 if (!h) { | 116 if (!h) { |
116 /* got an redirect? */ | 117 /* got an redirect? */ |
117 if (rtsp_search_answers(rtsp_session->s, RTSP_OPTIONS_LOCATION)) | 118 if (rtsp_search_answers(rtsp_session->s, RTSP_OPTIONS_LOCATION)) |
118 { | 119 { |
119 free(mrl_line); | 120 free(mrl_line); |