Revision d1c5fdf8

View differences:

libavformat/avio.h
41 41
 * Removal, reordering and changes to existing fields require a major
42 42
 * version bump.
43 43
 * sizeof(AVIOContext) must not be used outside libav*.
44
 *
45
 * @note None of the function pointers in AVIOContext should be called
46
 *       directly, they should only be set by the client application
47
 *       when implementing custom I/O. Normally these are set to the
48
 *       function pointers specified in avio_alloc_context()
44 49
 */
45 50
typedef struct {
46 51
    unsigned char *buffer;  /**< Start of the buffer. */
......
67 72
    unsigned char *checksum_ptr;
68 73
    unsigned long (*update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size);
69 74
    int error;              /**< contains the error code or 0 if no error happened */
75
    /**
76
     * Pause or resume playback for network streaming protocols - e.g. MMS.
77
     */
70 78
    int (*read_pause)(void *opaque, int pause);
79
    /**
80
     * Seek to a given timestamp in stream with the specified stream_index.
81
     * Needed for some network streaming protocols which don't support seeking
82
     * to byte position.
83
     */
71 84
    int64_t (*read_seek)(void *opaque, int stream_index,
72 85
                         int64_t timestamp, int flags);
73 86
    /**

Also available in: Unified diff