Skip to content

Commit 8fdaf78

Browse files
James DongAndroid (Google) Code Review
authored andcommitted
Merge "Change the signature of method addTextSource() in AwesomePlayer"
2 parents e4e0494 + 23cc716 commit 8fdaf78

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

media/libstagefright/AwesomePlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ void AwesomePlayer::setAudioSource(sp<MediaSource> source) {
13601360
mAudioTrack = source;
13611361
}
13621362

1363-
void AwesomePlayer::addTextSource(sp<MediaSource> source) {
1363+
void AwesomePlayer::addTextSource(const sp<MediaSource>& source) {
13641364
Mutex::Autolock autoLock(mTimedTextLock);
13651365
CHECK(source != NULL);
13661366

media/libstagefright/include/AwesomePlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ struct AwesomePlayer {
258258
void setVideoSource(sp<MediaSource> source);
259259
status_t initVideoDecoder(uint32_t flags = 0);
260260

261-
void addTextSource(sp<MediaSource> source);
261+
void addTextSource(const sp<MediaSource>& source);
262262

263263
void onStreamDone();
264264

0 commit comments

Comments
 (0)