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
dbc8b781
Commit
dbc8b781
authored
Oct 22, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prefetch: handle STREAM_GET_SIZE failure
parent
5a54270e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/stream_filter/prefetch.c
modules/stream_filter/prefetch.c
+4
-1
No files found.
modules/stream_filter/prefetch.c
View file @
dbc8b781
...
...
@@ -374,6 +374,8 @@ static int Control(stream_t *stream, int query, va_list args)
case
STREAM_IS_DIRECTORY
:
return
VLC_EGENERIC
;
case
STREAM_GET_SIZE
:
if
(
sys
->
size
==
(
uint64_t
)
-
1
)
return
VLC_EGENERIC
;
*
va_arg
(
args
,
uint64_t
*
)
=
sys
->
size
;
break
;
case
STREAM_GET_PTS_DELAY
:
...
...
@@ -446,7 +448,8 @@ static int Open(vlc_object_t *obj)
stream_Control
(
stream
->
p_source
,
STREAM_CAN_SEEK
,
&
sys
->
can_seek
);
stream_Control
(
stream
->
p_source
,
STREAM_CAN_PAUSE
,
&
sys
->
can_pause
);
stream_Control
(
stream
->
p_source
,
STREAM_CAN_CONTROL_PACE
,
&
sys
->
can_pace
);
stream_Control
(
stream
->
p_source
,
STREAM_GET_SIZE
,
&
sys
->
size
);
if
(
stream_Control
(
stream
->
p_source
,
STREAM_GET_SIZE
,
&
sys
->
size
))
sys
->
size
=
-
1
;
stream_Control
(
stream
->
p_source
,
STREAM_GET_PTS_DELAY
,
&
sys
->
pts_delay
);
if
(
stream_Control
(
stream
->
p_source
,
STREAM_GET_CONTENT_TYPE
,
&
sys
->
content_type
))
...
...
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