Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
3db95ed0
Commit
3db95ed0
authored
Sep 04, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cache: stream_Tell() is always zero at reset
Reset is at initialization, or after seekpoint seek.
parent
e9e6be46
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
modules/stream_filter/cache_block.c
modules/stream_filter/cache_block.c
+3
-3
modules/stream_filter/cache_read.c
modules/stream_filter/cache_read.c
+2
-2
No files found.
modules/stream_filter/cache_block.c
View file @
3db95ed0
...
@@ -228,12 +228,12 @@ static void AStreamControlReset(stream_t *s)
...
@@ -228,12 +228,12 @@ static void AStreamControlReset(stream_t *s)
{
{
stream_sys_t
*
sys
=
s
->
p_sys
;
stream_sys_t
*
sys
=
s
->
p_sys
;
sys
->
i_pos
=
stream_Tell
(
s
->
p_source
)
;
sys
->
i_pos
=
0
;
block_ChainRelease
(
sys
->
p_first
);
block_ChainRelease
(
sys
->
p_first
);
/* Init all fields of sys->block */
/* Init all fields of sys->block */
sys
->
i_start
=
sys
->
i_pos
;
sys
->
i_start
=
0
;
sys
->
i_offset
=
0
;
sys
->
i_offset
=
0
;
sys
->
p_current
=
NULL
;
sys
->
p_current
=
NULL
;
sys
->
i_size
=
0
;
sys
->
i_size
=
0
;
...
@@ -460,7 +460,7 @@ static int Open(vlc_object_t *obj)
...
@@ -460,7 +460,7 @@ static int Open(vlc_object_t *obj)
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
/* Common field */
/* Common field */
sys
->
i_pos
=
stream_Tell
(
s
->
p_source
)
;
sys
->
i_pos
=
0
;
/* Stats */
/* Stats */
sys
->
stat
.
i_bytes
=
0
;
sys
->
stat
.
i_bytes
=
0
;
...
...
modules/stream_filter/cache_read.c
View file @
3db95ed0
...
@@ -231,7 +231,7 @@ static void AStreamControlReset(stream_t *s)
...
@@ -231,7 +231,7 @@ static void AStreamControlReset(stream_t *s)
{
{
stream_sys_t
*
sys
=
s
->
p_sys
;
stream_sys_t
*
sys
=
s
->
p_sys
;
sys
->
i_pos
=
stream_Tell
(
s
->
p_source
)
;
sys
->
i_pos
=
0
;
/* Setup our tracks */
/* Setup our tracks */
sys
->
i_offset
=
0
;
sys
->
i_offset
=
0
;
...
@@ -511,7 +511,7 @@ static int Open(vlc_object_t *obj)
...
@@ -511,7 +511,7 @@ static int Open(vlc_object_t *obj)
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
/* Common field */
/* Common field */
sys
->
i_pos
=
stream_Tell
(
s
->
p_source
)
;
sys
->
i_pos
=
0
;
/* Stats */
/* Stats */
sys
->
stat
.
i_bytes
=
0
;
sys
->
stat
.
i_bytes
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment