Lines Matching refs:source
129 sp<AnotherPacketSource> source = info->mSource; in pause() local
132 if (source != NULL && source->isFinished(mediaDurationUs)) { in pause()
148 sp<AnotherPacketSource> source = getSource(audio); in getFormatMeta() local
150 if (source == NULL) { in getFormatMeta()
154 return source->getFormat(); in getFormatMeta()
207 sp<AnotherPacketSource> source = getSource(audio); in dequeueAccessUnit() local
209 if (source == NULL) { in dequeueAccessUnit()
214 if (!source->hasBufferAvailable(&finalResult)) { in dequeueAccessUnit()
225 source->signalEOS(ERROR_END_OF_STREAM); in dequeueAccessUnit()
231 if (source->isFinished(mediaDurationUs)) { in dequeueAccessUnit()
237 source->signalEOS(ERROR_END_OF_STREAM); in dequeueAccessUnit()
260 return source->dequeueAccessUnit(accessUnit); in dequeueAccessUnit()
265 sp<MediaSource> source = mTSParser->getSource( in getSource() local
268 return static_cast<AnotherPacketSource *>(source.get()); in getSource()
424 sp<AnotherPacketSource> source = getSource(false /* audio */); in onMessageReceived() local
425 if (source != NULL) { in onMessageReceived()
426 source->signalEOS(err); in onMessageReceived()
429 source = getSource(true /* audio */); in onMessageReceived()
430 if (source != NULL) { in onMessageReceived()
431 source->signalEOS(err); in onMessageReceived()
439 sp<AnotherPacketSource> source = info->mSource; in onMessageReceived() local
440 if (source != NULL) { in onMessageReceived()
447 source->queueAccessUnit(accessUnit); in onMessageReceived()
459 source->queueAccessUnit(accessUnit); in onMessageReceived()
471 sp<AnotherPacketSource> source = getSource(false /* audio */); in onMessageReceived() local
472 if (source != NULL) { in onMessageReceived()
473 source->signalEOS(finalResult); in onMessageReceived()
476 source = getSource(true /* audio */); in onMessageReceived()
477 if (source != NULL) { in onMessageReceived()
478 source->signalEOS(finalResult); in onMessageReceived()
489 sp<AnotherPacketSource> source = info->mSource; in onMessageReceived() local
490 if (source != NULL) { in onMessageReceived()
491 source->signalEOS(finalResult); in onMessageReceived()
504 sp<AnotherPacketSource> source = info->mSource; in onMessageReceived() local
505 if (source != NULL) { in onMessageReceived()
506 source->queueDiscontinuity(ATSParser::DISCONTINUITY_SEEK, NULL); in onMessageReceived()
573 sp<AnotherPacketSource> source = new AnotherPacketSource(format); in onConnected() local
576 mAudioTrack = source; in onConnected()
578 mVideoTrack = source; in onConnected()
581 info.mSource = source; in onConnected()