diff options
Diffstat (limited to 'src/input/librtsp')
| -rw-r--r-- | src/input/librtsp/rtsp_session.c | 7 | ||||
| -rw-r--r-- | src/input/librtsp/rtsp_session.h | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/input/librtsp/rtsp_session.c b/src/input/librtsp/rtsp_session.c index b522c777f..3e51ac7a1 100644 --- a/src/input/librtsp/rtsp_session.c +++ b/src/input/librtsp/rtsp_session.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: rtsp_session.c,v 1.2 2002/12/14 00:02:31 holstsn Exp $ + * $Id: rtsp_session.c,v 1.3 2002/12/15 16:54:10 holstsn Exp $ * * high level interface to rtsp servers. */ @@ -152,6 +152,11 @@ int rtsp_session_read (rtsp_session_t *this, char *data, int len) { return len; } +int rtsp_session_peek_header(rtsp_session_t *this, char *buf) { + + memcpy(buf, this->header, this->header_len); + return this->header_len; +} void rtsp_session_end(rtsp_session_t *session) { diff --git a/src/input/librtsp/rtsp_session.h b/src/input/librtsp/rtsp_session.h index 4ce89a0e5..fe7814b52 100644 --- a/src/input/librtsp/rtsp_session.h +++ b/src/input/librtsp/rtsp_session.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: rtsp_session.h,v 1.1 2002/12/12 22:14:56 holstsn Exp $ + * $Id: rtsp_session.h,v 1.2 2002/12/15 16:54:10 holstsn Exp $ * * high level interface to rtsp servers. */ @@ -28,6 +28,8 @@ rtsp_session_t *rtsp_session_start(char *mrl); int rtsp_session_read(rtsp_session_t *session, char *data, int len); +int rtsp_session_peek_header(rtsp_session_t *this, char *buf); + void rtsp_session_end(rtsp_session_t *session); |
