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
fc3b19dd
Commit
fc3b19dd
authored
Jun 30, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream: use vlc_killed()
parent
c881098b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/input/stream.c
src/input/stream.c
+4
-4
No files found.
src/input/stream.c
View file @
fc3b19dd
...
...
@@ -694,7 +694,7 @@ static void AStreamPrebufferBlock( stream_t *s )
bool
b_eof
;
block_t
*
b
;
if
(
!
vlc_object_alive
(
s
)
||
p_sys
->
block
.
i_size
>
STREAM_CACHE_PREBUFFER_SIZE
)
if
(
vlc_killed
(
)
||
p_sys
->
block
.
i_size
>
STREAM_CACHE_PREBUFFER_SIZE
)
{
int64_t
i_byterate
;
...
...
@@ -1024,7 +1024,7 @@ static int AStreamRefillBlock( stream_t *s )
{
bool
b_eof
;
if
(
!
vlc_object_alive
(
s
)
)
if
(
vlc_killed
(
)
)
return
VLC_EGENERIC
;
/* Fetch a block */
...
...
@@ -1380,7 +1380,7 @@ static int AStreamRefillStream( stream_t *s )
int
i_off
=
tk
->
i_end
%
STREAM_CACHE_TRACK_SIZE
;
int
i_read
;
if
(
!
vlc_object_alive
(
s
)
)
if
(
vlc_killed
(
)
)
return
VLC_EGENERIC
;
i_read
=
__MIN
(
i_toread
,
STREAM_CACHE_TRACK_SIZE
-
i_off
);
...
...
@@ -1441,7 +1441,7 @@ static void AStreamPrebufferStream( stream_t *s )
int
i_read
;
int
i_buffered
=
tk
->
i_end
-
tk
->
i_start
;
if
(
!
vlc_object_alive
(
s
)
||
i_buffered
>=
STREAM_CACHE_PREBUFFER_SIZE
)
if
(
vlc_killed
(
)
||
i_buffered
>=
STREAM_CACHE_PREBUFFER_SIZE
)
{
int64_t
i_byterate
;
...
...
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