| 44 | } |
| 45 | |
| 46 | int proxyDataSource::Read(void *buf, size_t nbyte) |
| 47 | { |
| 48 | if (mRead) { |
| 49 | return mRead(mUserArg, static_cast<uint8_t *>(buf), nbyte); |
| 50 | } |
| 51 | |
| 52 | return -1; |
| 53 | } |
| 54 | |
| 55 | void proxyDataSource::setImpl(readImpl read, seekImpl seek, openImpl open, interruptImpl interrupt, setSegmentListImpl setSegmentList, |
| 56 | getBufferDurationImpl getBufferDuration, enableCacheImpl enableCache, void *arg) |
no outgoing calls