Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 860936d7 authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Change the signature of method addTextSource() in AwesomePlayer"

parents 2b213bc2 7c5b72c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -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();