[vlc-commits] cache: stream_Tell() is always zero at reset
Rémi Denis-Courmont
git at videolan.org
Fri Sep 4 19:57:49 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Sep 4 20:09:15 2015 +0300| [3db95ed0fac18961534dd48185864036a7f62e70] | committer: Rémi Denis-Courmont
cache: stream_Tell() is always zero at reset
Reset is at initialization, or after seekpoint seek.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3db95ed0fac18961534dd48185864036a7f62e70
---
modules/stream_filter/cache_block.c | 6 +++---
modules/stream_filter/cache_read.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/stream_filter/cache_block.c b/modules/stream_filter/cache_block.c
index 4f01c91..54a2486 100644
--- a/modules/stream_filter/cache_block.c
+++ b/modules/stream_filter/cache_block.c
@@ -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;
diff --git a/modules/stream_filter/cache_read.c b/modules/stream_filter/cache_read.c
index 7a96053..fbe0e9a 100644
--- a/modules/stream_filter/cache_read.c
+++ b/modules/stream_filter/cache_read.c
@@ -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;
More information about the vlc-commits
mailing list