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
62d9e9b2
Commit
62d9e9b2
authored
Jun 30, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access: use vlc_killed()
parent
fc3b19dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
modules/access/avio.c
modules/access/avio.c
+7
-1
modules/access/dvb/access.c
modules/access/dvb/access.c
+1
-1
modules/access/live555.cpp
modules/access/live555.cpp
+4
-1
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+1
-1
No files found.
modules/access/avio.c
View file @
62d9e9b2
...
...
@@ -31,6 +31,7 @@
#include <vlc_access.h>
#include <vlc_sout.h>
#include <vlc_avcodec.h>
#include <vlc_interrupt.h>
#include "avio.h"
#include "../codec/avcodec/avcommon.h"
...
...
@@ -70,7 +71,12 @@ static int OutSeek (sout_access_out_t *, off_t);
static
int
UrlInterruptCallback
(
void
*
access
)
{
return
!
vlc_object_alive
((
access_t
*
)
access
);
/* NOTE: This works so long as libavformat invokes the callback from the
* same thread that invokes libavformat. Currently libavformat does not
* create internal threads at all. This is not proper event handling in any
* case; libavformat needs fixing. */
(
void
)
access
;
return
vlc_killed
();
}
struct
access_sys_t
...
...
modules/access/dvb/access.c
View file @
62d9e9b2
...
...
@@ -285,7 +285,7 @@ static block_t *BlockScan( access_t *p_access )
i_ret
=
0
;
if
(
!
vlc_object_alive
(
p_access
)
||
scan_IsCancelled
(
p_scan
)
)
if
(
vlc_killed
(
)
||
scan_IsCancelled
(
p_scan
)
)
break
;
if
(
timeout
>=
0
)
...
...
modules/access/live555.cpp
View file @
62d9e9b2
...
...
@@ -41,6 +41,7 @@
#include <vlc_dialog.h>
#include <vlc_url.h>
#include <vlc_strings.h>
#include <vlc_interrupt.h>
#include <limits.h>
#include <assert.h>
...
...
@@ -584,7 +585,9 @@ static int Connect( demux_t *p_demux )
}
createnew:
if
(
!
vlc_object_alive
(
p_demux
)
)
/* FIXME: This is naive and incorrect; it does not prevent the thread
* getting stuck in blocking socket operations. */
if
(
vlc_killed
()
)
{
i_ret
=
VLC_EGENERIC
;
goto
bailout
;
...
...
modules/access/mms/mmstu.c
View file @
62d9e9b2
...
...
@@ -1060,7 +1060,7 @@ static int NetFillBuffer( access_t *p_access )
do
{
if
(
!
vlc_object_alive
(
p_access
)
)
if
(
vlc_killed
(
)
)
return
-
1
;
i_ret
=
vlc_poll_i11e
(
ufd
,
nfd
,
timeout
);
...
...
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