We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4e0494 + 23cc716 commit 8fdaf78Copy full SHA for 8fdaf78
media/libstagefright/AwesomePlayer.cpp
@@ -1360,7 +1360,7 @@ void AwesomePlayer::setAudioSource(sp<MediaSource> source) {
1360
mAudioTrack = source;
1361
}
1362
1363
-void AwesomePlayer::addTextSource(sp<MediaSource> source) {
+void AwesomePlayer::addTextSource(const sp<MediaSource>& source) {
1364
Mutex::Autolock autoLock(mTimedTextLock);
1365
CHECK(source != NULL);
1366
media/libstagefright/include/AwesomePlayer.h
@@ -258,7 +258,7 @@ struct AwesomePlayer {
258
void setVideoSource(sp<MediaSource> source);
259
status_t initVideoDecoder(uint32_t flags = 0);
260
261
- void addTextSource(sp<MediaSource> source);
+ void addTextSource(const sp<MediaSource>& source);
262
263
void onStreamDone();
264
0 commit comments