Commit 3db95ed0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

cache: stream_Tell() is always zero at reset

Reset is at initialization, or after seekpoint seek.
parent e9e6be46
......@@ -228,12 +228,12 @@ static void AStreamControlReset(stream_t *s)
{
stream_sys_t *sys = s->p_sys;
sys->i_pos = stream_Tell(s->p_source);
sys->i_pos = 0;
block_ChainRelease(sys->p_first);
/* Init all fields of sys->block */
sys->i_start = sys->i_pos;
sys->i_start = 0;
sys->i_offset = 0;
sys->p_current = NULL;
sys->i_size = 0;
......@@ -460,7 +460,7 @@ static int Open(vlc_object_t *obj)
return VLC_ENOMEM;
/* Common field */
sys->i_pos = stream_Tell(s->p_source);
sys->i_pos = 0;
/* Stats */
sys->stat.i_bytes = 0;
......
......@@ -231,7 +231,7 @@ static void AStreamControlReset(stream_t *s)
{
stream_sys_t *sys = s->p_sys;
sys->i_pos = stream_Tell(s->p_source);
sys->i_pos = 0;
/* Setup our tracks */
sys->i_offset = 0;
......@@ -511,7 +511,7 @@ static int Open(vlc_object_t *obj)
return VLC_ENOMEM;
/* Common field */
sys->i_pos = stream_Tell(s->p_source);
sys->i_pos = 0;
/* Stats */
sys->stat.i_bytes = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment