Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
32d545e0
Commit
32d545e0
authored
May 21, 2012
by
Samuel Pitoiset
Committed by
Martin Storsjö
May 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avio: Add a function for signalling end of reading/writing
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
0ce4a627
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
avio.c
libavformat/avio.c
+7
-0
url.h
libavformat/url.h
+13
-0
No files found.
libavformat/avio.c
View file @
32d545e0
...
...
@@ -345,6 +345,13 @@ int ffurl_get_file_handle(URLContext *h)
return
h
->
prot
->
url_get_file_handle
(
h
);
}
int
ffurl_shutdown
(
URLContext
*
h
,
int
flags
)
{
if
(
!
h
->
prot
->
url_shutdown
)
return
AVERROR
(
EINVAL
);
return
h
->
prot
->
url_shutdown
(
h
,
flags
);
}
int
ff_check_interrupt
(
AVIOInterruptCB
*
cb
)
{
int
ret
;
...
...
libavformat/url.h
View file @
32d545e0
...
...
@@ -81,6 +81,7 @@ typedef struct URLProtocol {
int64_t
(
*
url_read_seek
)(
URLContext
*
h
,
int
stream_index
,
int64_t
timestamp
,
int
flags
);
int
(
*
url_get_file_handle
)(
URLContext
*
h
);
int
(
*
url_shutdown
)(
URLContext
*
h
,
int
flags
);
int
priv_data_size
;
const
AVClass
*
priv_data_class
;
int
flags
;
...
...
@@ -200,6 +201,18 @@ int64_t ffurl_size(URLContext *h);
*/
int
ffurl_get_file_handle
(
URLContext
*
h
);
/**
* Signal the URLContext that we are done reading or writing the stream.
*
* @param h pointer to the resource
* @param flags flags which control how the resource indicated by url
* is to be shutdown
*
* @return a negative value if an error condition occurred, 0
* otherwise
*/
int
ffurl_shutdown
(
URLContext
*
h
,
int
flags
);
/**
* Register the URLProtocol protocol.
*
...
...
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