... | ... |
@@ -37,12 +37,14 @@ |
37 | 37 |
|
38 | 38 |
/* unbuffered I/O */ |
39 | 39 |
|
40 |
+#if FF_API_OLD_AVIO |
|
40 | 41 |
/** |
41 | 42 |
* URL Context. |
42 | 43 |
* New fields can be added to the end with minor version bumps. |
43 | 44 |
* Removal, reordering and changes to existing fields require a major |
44 | 45 |
* version bump. |
45 | 46 |
* sizeof(URLContext) must not be used outside libav*. |
47 |
+ * @deprecated This struct will be made private |
|
46 | 48 |
*/ |
47 | 49 |
typedef struct URLContext { |
48 | 50 |
#if FF_API_URL_CLASS |
... | ... |
@@ -57,7 +59,6 @@ typedef struct URLContext { |
57 | 57 |
int is_connected; |
58 | 58 |
} URLContext; |
59 | 59 |
|
60 |
-#if FF_API_OLD_AVIO |
|
61 | 60 |
typedef struct URLPollEntry { |
62 | 61 |
URLContext *handle; |
63 | 62 |
int events; |
... | ... |
@@ -32,6 +32,17 @@ |
32 | 32 |
#define URL_PROTOCOL_FLAG_NESTED_SCHEME 1 /*< The protocol name can be the first part of a nested protocol scheme */ |
33 | 33 |
|
34 | 34 |
extern int (*url_interrupt_cb)(void); |
35 |
+ |
|
36 |
+typedef struct URLContext { |
|
37 |
+ const AVClass *av_class; /**< information for av_log(). Set by url_open(). */ |
|
38 |
+ struct URLProtocol *prot; |
|
39 |
+ void *priv_data; |
|
40 |
+ char *filename; /**< specified URL */ |
|
41 |
+ int flags; |
|
42 |
+ int max_packet_size; /**< if non zero, the stream is packetized with this max packet size */ |
|
43 |
+ int is_streamed; /**< true if streamed (no seek possible), default = false */ |
|
44 |
+ int is_connected; |
|
45 |
+} URLContext; |
|
35 | 46 |
#endif |
36 | 47 |
|
37 | 48 |
/** |