Revision fa104e14

View differences:

libavformat/avio.c
388 388
    url_interrupt_cb = interrupt_cb;
389 389
}
390 390

  
391
#if FF_API_OLD_AVIO
391 392
int av_url_read_pause(URLContext *h, int pause)
392 393
{
393 394
    if (!h->prot->url_read_pause)
394 395
        return AVERROR(ENOSYS);
395 396
    return h->prot->url_read_pause(h, pause);
396 397
}
398
#endif
397 399

  
398 400
int64_t av_url_read_seek(URLContext *h,
399 401
        int stream_index, int64_t timestamp, int flags)
libavformat/avio.h
114 114
attribute_deprecated int url_get_file_handle(URLContext *h);
115 115
attribute_deprecated int url_get_max_packet_size(URLContext *h);
116 116
attribute_deprecated void url_get_filename(URLContext *h, char *buf, int buf_size);
117
attribute_deprecated int av_url_read_pause(URLContext *h, int pause);
117 118
#endif
118 119

  
119 120
/**
......
136 137
#endif
137 138

  
138 139
/**
139
 * Pause and resume playing - only meaningful if using a network streaming
140
 * protocol (e.g. MMS).
141
 * @param pause 1 for pause, 0 for resume
142
 */
143
int av_url_read_pause(URLContext *h, int pause);
144

  
145
/**
146 140
 * Seek to a given timestamp relative to some component stream.
147 141
 * Only meaningful if using a network streaming protocol (e.g. MMS.).
148 142
 * @param stream_index The stream index that the timestamp is relative to.
libavformat/avio_internal.h
66 66
/** @warning must be called before any I/O */
67 67
int ffio_set_buf_size(AVIOContext *s, int buf_size);
68 68

  
69
/**
70
 * Pause and resume playing - only meaningful if using a network streaming
71
 * protocol (e.g. MMS).
72
 * @param pause 1 for pause, 0 for resume
73
 */
69 74
int     ffio_read_pause(AVIOContext *h,    int pause);
70 75
int64_t ffio_read_seek (AVIOContext *h,    int stream_index,
71 76
                        int64_t timestamp, int flags);

Also available in: Unified diff