diff options
author | Stefan Holst <holstsn@users.sourceforge.net> | 2002-12-15 16:54:10 +0000 |
---|---|---|
committer | Stefan Holst <holstsn@users.sourceforge.net> | 2002-12-15 16:54:10 +0000 |
commit | 04cead387b26800a35da981a21d3a86048fd5dbd (patch) | |
tree | 47654727dbe5d5a438b78f8c33cf66e750d6b7c4 /src/input/librtsp | |
parent | d84f253422522de188a6c0c86897939f7f41651a (diff) | |
download | xine-lib-04cead387b26800a35da981a21d3a86048fd5dbd.tar.gz xine-lib-04cead387b26800a35da981a21d3a86048fd5dbd.tar.bz2 |
- set high water marks to higher values in http, pnm and
rtsp input plugins to prevent stuttering at the beginning
- enable CAP_PREVIEW in pnm and rtsp input plugins
CVS patchset: 3545
CVS date: 2002/12/15 16:54:10
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); |