diff options
author | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-30 21:55:58 +0000 |
---|---|---|
committer | rtogni <rtogni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-10-30 21:55:58 +0000 |
commit | 13636fce07413d5b0e4356302753686dece3b595 (patch) | |
tree | 75c41ae50e840c0dce23f2b53785b32dc633ce9b /stream/librtsp | |
parent | 1d8468125f937b42c0949f5e9a6ce2dd9808bf31 (diff) | |
download | mpv-13636fce07413d5b0e4356302753686dece3b595.tar.bz2 mpv-13636fce07413d5b0e4356302753686dece3b595.tar.xz |
Realrtsp authentication
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20543 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/librtsp')
-rw-r--r-- | stream/librtsp/rtsp_session.c | 5 | ||||
-rw-r--r-- | stream/librtsp/rtsp_session.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/stream/librtsp/rtsp_session.c b/stream/librtsp/rtsp_session.c index b222543f57..6d440e06a4 100644 --- a/stream/librtsp/rtsp_session.c +++ b/stream/librtsp/rtsp_session.c @@ -74,7 +74,8 @@ 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, uint32_t bandwidth) { +rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, + int port, int *redir, uint32_t bandwidth, char *user, char *pass) { rtsp_session_t *rtsp_session = NULL; char *server; @@ -111,7 +112,7 @@ rtsp_session_t *rtsp_session_start(int fd, char **mrl, char *path, char *host, i { /* we are talking to a real server ... */ - h=real_setup_and_get_header(rtsp_session->s, bandwidth); + h=real_setup_and_get_header(rtsp_session->s, bandwidth, user, pass); if (!h) { /* got an redirect? */ if (rtsp_search_answers(rtsp_session->s, RTSP_OPTIONS_LOCATION)) diff --git a/stream/librtsp/rtsp_session.h b/stream/librtsp/rtsp_session.h index e955e939b1..8503ae2cc7 100644 --- a/stream/librtsp/rtsp_session.h +++ b/stream/librtsp/rtsp_session.h @@ -33,7 +33,8 @@ typedef struct rtsp_session_s rtsp_session_t; -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_start(int fd, char **mrl, char *path, char *host, + int port, int *redir, uint32_t bandwidth, char *user, char *pass); int rtsp_session_read(rtsp_session_t *session, char *data, int len); |