comparison avio.c @ 2778:50e2307414ee libavformat

Extend URLProtocol with new function pointers and api functions for av_url_read_play(), av_url_read_pause() and av_url_read_seek(). patch by: Bj«Órn Axelsson, bjorn d axelsson a intinor d se
author andoma
date Sat, 24 Nov 2007 07:09:32 +0000
parents 39cac1b7296e
children 173b5cb7efde
comparison
equal deleted inserted replaced
2777:adc6c1e2bf70 2778:50e2307414ee
185 { 185 {
186 if (!interrupt_cb) 186 if (!interrupt_cb)
187 interrupt_cb = default_interrupt_cb; 187 interrupt_cb = default_interrupt_cb;
188 url_interrupt_cb = interrupt_cb; 188 url_interrupt_cb = interrupt_cb;
189 } 189 }
190
191 int av_url_read_play(URLContext *h)
192 {
193 if (!h->prot->url_read_play)
194 return AVERROR(ENOSYS);
195 return h->prot->url_read_play(h);
196 }
197
198 int av_url_read_pause(URLContext *h)
199 {
200 if (!h->prot->url_read_pause)
201 return AVERROR(ENOSYS);
202 return h->prot->url_read_pause(h);
203 }
204
205 int av_url_read_seek(URLContext *h,
206 int stream_index, int64_t timestamp, int flags)
207 {
208 if (!h->prot->url_read_seek)
209 return AVERROR(ENOSYS);
210 return h->prot->url_read_seek(h, stream_index, timestamp, flags);
211 }