Merge "Change the signature of method addTextSource() in AwesomePlayer"
This commit is contained in:
@@ -1360,7 +1360,7 @@ void AwesomePlayer::setAudioSource(sp<MediaSource> source) {
|
||||
mAudioTrack = source;
|
||||
}
|
||||
|
||||
void AwesomePlayer::addTextSource(sp<MediaSource> source) {
|
||||
void AwesomePlayer::addTextSource(const sp<MediaSource>& source) {
|
||||
Mutex::Autolock autoLock(mTimedTextLock);
|
||||
CHECK(source != NULL);
|
||||
|
||||
|
||||
@@ -258,7 +258,7 @@ private:
|
||||
void setVideoSource(sp<MediaSource> source);
|
||||
status_t initVideoDecoder(uint32_t flags = 0);
|
||||
|
||||
void addTextSource(sp<MediaSource> source);
|
||||
void addTextSource(const sp<MediaSource>& source);
|
||||
|
||||
void onStreamDone();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user