summaryrefslogtreecommitdiff
path: root/libavformat/file.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-04-09 03:09:49 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-04-09 03:17:07 +0200
commitd4d09329eef30787da699c7a397b00f6f96940bc (patch)
tree3605d4e30063b924254a373e270026bca6436f11 /libavformat/file.c
parenta61bc91d42945e6ccefef4867ef32d2073f8f8c7 (diff)
parent0c68c804196400de3c40c8849124b292ed62b99c (diff)
Merge remote branch 'qatar/master'
* qatar/master: lavf: bump minor and add an APIChanges entry for avformat cleanup lavf: get rid of ffm-specific stuff in avformat.h Not pulled: avio: deprecate av_protocol_next(). avio: add a function for iterating though protocol names. lavf: rename a parameter of av_sdp_create from buff->buf lavf: rename avf_sdp_create to av_sdp_create. lavf: make av_guess_image2_codec internal avio: make URLProtocol internal. avio: make URLContext internal. lavf: mark av_pkt_dump(_log) for remove on $next+1 bump. lavf: use designated initializers for all protocols applehttp: don't use deprecated url_ functions. avio: move two ff_udp_* functions from avio_internal to url.h asfdec: remove a forgotten declaration of nonexistent function avio: deprecate the typedef for URLInterruptCB Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/file.c')
-rw-r--r--libavformat/file.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index b8c7c4c9d4..64f8782c97 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -29,6 +29,7 @@
#include <sys/stat.h>
#include <stdlib.h>
#include "os_support.h"
+#include "url.h"
/* standard file protocol */
@@ -95,12 +96,12 @@ static int file_close(URLContext *h)
}
URLProtocol ff_file_protocol = {
- "file",
- file_open,
- file_read,
- file_write,
- file_seek,
- file_close,
+ .name = "file",
+ .url_open = file_open,
+ .url_read = file_read,
+ .url_write = file_write,
+ .url_seek = file_seek,
+ .url_close = file_close,
.url_get_file_handle = file_get_handle,
};
@@ -131,10 +132,10 @@ static int pipe_open(URLContext *h, const char *filename, int flags)
}
URLProtocol ff_pipe_protocol = {
- "pipe",
- pipe_open,
- file_read,
- file_write,
+ .name = "pipe",
+ .url_open = pipe_open,
+ .url_read = file_read,
+ .url_write = file_write,
.url_get_file_handle = file_get_handle,
};