int i_seek_count;
int64_t i_seek_time;
} stat;
+
+ /* Preparse mode ? */
+ vlc_bool_t b_quick;
};
/* Method 1: */
/****************************************************************************
* stream_AccessNew: create a stream from a access
****************************************************************************/
-stream_t *stream_AccessNew( access_t *p_access )
+stream_t *stream_AccessNew( access_t *p_access, vlc_bool_t b_quick )
{
stream_t *s = vlc_object_create( p_access, VLC_OBJECT_STREAM );
stream_sys_t *p_sys;
p_sys->stat.i_seek_count = 0;
p_sys->stat.i_seek_time = 0;
+ p_sys->b_quick = b_quick;
+
/* Peek */
p_sys->i_peek = 0;
p_sys->p_peek = NULL;
int64_t i_first = 0;
int64_t i_start;
- int64_t i_prebuffer = (s->p_sys->p_access->info.i_title > 1 ||
- s->p_sys->p_access->info.i_seekpoint > 1) ? STREAM_CACHE_PREBUFFER_SIZE : STREAM_CACHE_TRACK_SIZE / 3;
+ int64_t i_prebuffer = p_sys->b_quick ? STREAM_CACHE_TRACK_SIZE /100 :
+ ((s->p_sys->p_access->info.i_title > 1 ||
+ s->p_sys->p_access->info.i_seekpoint > 1) ? STREAM_CACHE_PREBUFFER_SIZE : STREAM_CACHE_TRACK_SIZE / 3);
msg_Dbg( s, "pre buffering" );
i_start = mdate();