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/input_rtsp.c | |
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/input_rtsp.c')
-rw-r--r-- | src/input/input_rtsp.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/input/input_rtsp.c b/src/input/input_rtsp.c index 2accc1515..f97e3e02c 100644 --- a/src/input/input_rtsp.c +++ b/src/input/input_rtsp.c @@ -155,7 +155,7 @@ static off_t rtsp_plugin_get_length (input_plugin_t *this_gen) { } static uint32_t rtsp_plugin_get_capabilities (input_plugin_t *this_gen) { - return INPUT_CAP_NOCAP; + return INPUT_CAP_PREVIEW; } static uint32_t rtsp_plugin_get_blocksize (input_plugin_t *this_gen) { @@ -202,7 +202,15 @@ static char* rtsp_plugin_get_mrl (input_plugin_t *this_gen) { static int rtsp_plugin_get_optional_data (input_plugin_t *this_gen, void *data, int data_type) { - /* rtsp_input_plugin_t *this = (rtsp_input_plugin_t *) this_gen; */ + rtsp_input_plugin_t *this = (rtsp_input_plugin_t *) this_gen; + + switch (data_type) { + case INPUT_OPTIONAL_DATA_PREVIEW: + + return rtsp_session_peek_header(this->rtsp, data); + + break; + } return INPUT_OPTIONAL_UNSUPPORTED; } @@ -242,6 +250,7 @@ static input_plugin_t *open_plugin (input_class_t *cls_gen, xine_stream_t *strea sprintf(this->public_mrl, "%s.rm", this->mrl); this->nbc = nbc_init (stream); + nbc_set_high_water_mark(this->nbc, 50); this->input_plugin.get_capabilities = rtsp_plugin_get_capabilities; this->input_plugin.read = rtsp_plugin_read; |