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
c47c2f60
Commit
c47c2f60
authored
Oct 21, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cache_read: add error log
parent
e2c47463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
modules/stream_filter/cache_read.c
modules/stream_filter/cache_read.c
+10
-1
No files found.
modules/stream_filter/cache_read.c
View file @
c47c2f60
...
...
@@ -259,7 +259,7 @@ static ssize_t AStreamReadNoSeekStream(stream_t *s, void *buf, size_t len)
#ifdef STREAM_DEBUG
msg_Dbg
(
s
,
"AStreamReadStream: %zd pos=%"
PRId64
" tk=%d start=%"
PRId64
" offset=%d end=%"
PRId64
,
len
,
sys
->
i_pos
,
p_
sys
->
i_tk
,
" offset=%d end=%"
PRId64
,
len
,
sys
->
i_pos
,
sys
->
i_tk
,
tk
->
i_start
,
sys
->
i_offset
,
tk
->
i_end
);
#endif
...
...
@@ -393,7 +393,10 @@ static int AStreamSeekStream(stream_t *s, uint64_t i_pos)
* TODO it is stupid to seek now, it would be better to delay it
*/
if
(
stream_Seek
(
s
->
p_source
,
tk
->
i_end
))
{
msg_Err
(
s
,
"AStreamSeekStream: hard seek failed"
);
return
VLC_EGENERIC
;
}
}
else
if
(
i_pos
>
tk
->
i_end
)
{
...
...
@@ -403,7 +406,10 @@ static int AStreamSeekStream(stream_t *s, uint64_t i_pos)
const
int
i_read_max
=
__MIN
(
10
*
STREAM_READ_ATONCE
,
i_skip
);
int
i_read
=
0
;
if
((
i_read
=
AStreamReadNoSeekStream
(
s
,
NULL
,
i_read_max
))
<=
0
)
{
msg_Err
(
s
,
"AStreamSeekStream: skip failed"
);
return
VLC_EGENERIC
;
}
i_skip
-=
i_read_max
;
}
}
...
...
@@ -415,7 +421,10 @@ static int AStreamSeekStream(stream_t *s, uint64_t i_pos)
#endif
/* Nothing good, seek and choose oldest segment */
if
(
stream_Seek
(
s
->
p_source
,
i_pos
))
{
msg_Err
(
s
,
"AStreamSeekStream: hard seek failed"
);
return
VLC_EGENERIC
;
}
tk
->
i_start
=
i_pos
;
tk
->
i_end
=
i_pos
;
...
...
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