comparison avio.c @ 2839:b51319dd86e5 libavformat

Merge recently added and still unused play and pause functions.
author michael
date Wed, 19 Dec 2007 20:57:13 +0000
parents 63fda6ba2173
children f51675f78402
comparison
equal deleted inserted replaced
2838:6bea49ef18b1 2839:b51319dd86e5
190 if (!interrupt_cb) 190 if (!interrupt_cb)
191 interrupt_cb = default_interrupt_cb; 191 interrupt_cb = default_interrupt_cb;
192 url_interrupt_cb = interrupt_cb; 192 url_interrupt_cb = interrupt_cb;
193 } 193 }
194 194
195 int av_url_read_play(URLContext *h) 195 int av_url_read_pause(URLContext *h, int pause)
196 {
197 if (!h->prot->url_read_play)
198 return AVERROR(ENOSYS);
199 return h->prot->url_read_play(h);
200 }
201
202 int av_url_read_pause(URLContext *h)
203 { 196 {
204 if (!h->prot->url_read_pause) 197 if (!h->prot->url_read_pause)
205 return AVERROR(ENOSYS); 198 return AVERROR(ENOSYS);
206 return h->prot->url_read_pause(h); 199 return h->prot->url_read_pause(h, pause);
207 } 200 }
208 201
209 int av_url_read_seek(URLContext *h, 202 int av_url_read_seek(URLContext *h,
210 int stream_index, int64_t timestamp, int flags) 203 int stream_index, int64_t timestamp, int flags)
211 { 204 {