Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
c4a090dd
Commit
c4a090dd
authored
Nov 06, 2011
by
Martin Storsjö
Committed by
Anton Khirnov
Nov 13, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: Add an internal utility function for checking the new interrupt callback
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
6aa0b98f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
avio.c
libavformat/avio.c
+8
-0
url.h
libavformat/url.h
+6
-0
No files found.
libavformat/avio.c
View file @
c4a090dd
...
@@ -408,6 +408,14 @@ void avio_set_interrupt_cb(int (*interrupt_cb)(void))
...
@@ -408,6 +408,14 @@ void avio_set_interrupt_cb(int (*interrupt_cb)(void))
url_interrupt_cb
=
interrupt_cb
;
url_interrupt_cb
=
interrupt_cb
;
}
}
int
ff_check_interrupt
(
AVIOInterruptCB
*
cb
)
{
int
ret
;
if
(
cb
&&
cb
->
callback
&&
(
ret
=
cb
->
callback
(
cb
->
opaque
)))
return
ret
;
return
url_interrupt_cb
();
}
#if FF_API_OLD_AVIO
#if FF_API_OLD_AVIO
int
av_url_read_pause
(
URLContext
*
h
,
int
pause
)
int
av_url_read_pause
(
URLContext
*
h
,
int
pause
)
{
{
...
...
libavformat/url.h
View file @
c4a090dd
...
@@ -170,6 +170,12 @@ int ffurl_get_file_handle(URLContext *h);
...
@@ -170,6 +170,12 @@ int ffurl_get_file_handle(URLContext *h);
*/
*/
int
ffurl_register_protocol
(
URLProtocol
*
protocol
,
int
size
);
int
ffurl_register_protocol
(
URLProtocol
*
protocol
,
int
size
);
/**
* Check if the user has requested to interrup a blocking function
* associated with cb.
*/
int
ff_check_interrupt
(
AVIOInterruptCB
*
cb
);
/* udp.c */
/* udp.c */
int
ff_udp_set_remote_url
(
URLContext
*
h
,
const
char
*
uri
);
int
ff_udp_set_remote_url
(
URLContext
*
h
,
const
char
*
uri
);
int
ff_udp_get_local_port
(
URLContext
*
h
);
int
ff_udp_get_local_port
(
URLContext
*
h
);
...
...
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