Loading media/libstagefright/AwesomePlayer.cpp +7 −2 Original line number Original line Diff line number Diff line Loading @@ -353,6 +353,10 @@ status_t AwesomePlayer::setDataSource_l( const KeyedVector<String8, String8> *headers) { const KeyedVector<String8, String8> *headers) { reset_l(); reset_l(); ExtendedStats::AutoProfile autoProfile(STATS_PROFILE_SET_DATA_SOURCE, mPlayerExtendedStats->getProfileTimes()); PLAYER_STATS(profileStart, STATS_PROFILE_START_LATENCY); mHTTPService = httpService; mHTTPService = httpService; mUri = uri; mUri = uri; Loading Loading @@ -392,11 +396,13 @@ status_t AwesomePlayer::setDataSource_l( status_t AwesomePlayer::setDataSource( status_t AwesomePlayer::setDataSource( int fd, int64_t offset, int64_t length) { int fd, int64_t offset, int64_t length) { Mutex::Autolock autoLock(mLock); Mutex::Autolock autoLock(mLock); reset_l(); ExtendedStats::AutoProfile autoProfile(STATS_PROFILE_SET_DATA_SOURCE, ExtendedStats::AutoProfile autoProfile(STATS_PROFILE_SET_DATA_SOURCE, mPlayerExtendedStats->getProfileTimes()); mPlayerExtendedStats->getProfileTimes()); PLAYER_STATS(profileStart, STATS_PROFILE_START_LATENCY); PLAYER_STATS(profileStart, STATS_PROFILE_START_LATENCY); reset_l(); if (fd) { if (fd) { printFileName(fd); printFileName(fd); } } Loading Loading @@ -2013,7 +2019,6 @@ void AwesomePlayer::onVideoEvent() { seekmode); seekmode); } } for (;;) { for (;;) { PLAYER_STATS(profileStartOnce, STATS_PROFILE_FIRST_BUFFER(true) /* video */); status_t err = mVideoSource->read(&mVideoBuffer, &options); status_t err = mVideoSource->read(&mVideoBuffer, &options); options.clearSeekTo(); options.clearSeekTo(); Loading media/libstagefright/OMXCodec.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -3539,6 +3539,7 @@ bool OMXCodec::drainInputBuffer(BufferInfo *info) { info = findEmptyInputBuffer(); info = findEmptyInputBuffer(); } } PLAYER_STATS(profileStartOnce, STATS_PROFILE_FIRST_BUFFER(mIsVideo)); CODEC_LOGV("Calling emptyBuffer on buffer %p (length %d), " CODEC_LOGV("Calling emptyBuffer on buffer %p (length %d), " "timestamp %lld us (%.2f secs)", "timestamp %lld us (%.2f secs)", info->mBuffer, offset, info->mBuffer, offset, Loading Loading
media/libstagefright/AwesomePlayer.cpp +7 −2 Original line number Original line Diff line number Diff line Loading @@ -353,6 +353,10 @@ status_t AwesomePlayer::setDataSource_l( const KeyedVector<String8, String8> *headers) { const KeyedVector<String8, String8> *headers) { reset_l(); reset_l(); ExtendedStats::AutoProfile autoProfile(STATS_PROFILE_SET_DATA_SOURCE, mPlayerExtendedStats->getProfileTimes()); PLAYER_STATS(profileStart, STATS_PROFILE_START_LATENCY); mHTTPService = httpService; mHTTPService = httpService; mUri = uri; mUri = uri; Loading Loading @@ -392,11 +396,13 @@ status_t AwesomePlayer::setDataSource_l( status_t AwesomePlayer::setDataSource( status_t AwesomePlayer::setDataSource( int fd, int64_t offset, int64_t length) { int fd, int64_t offset, int64_t length) { Mutex::Autolock autoLock(mLock); Mutex::Autolock autoLock(mLock); reset_l(); ExtendedStats::AutoProfile autoProfile(STATS_PROFILE_SET_DATA_SOURCE, ExtendedStats::AutoProfile autoProfile(STATS_PROFILE_SET_DATA_SOURCE, mPlayerExtendedStats->getProfileTimes()); mPlayerExtendedStats->getProfileTimes()); PLAYER_STATS(profileStart, STATS_PROFILE_START_LATENCY); PLAYER_STATS(profileStart, STATS_PROFILE_START_LATENCY); reset_l(); if (fd) { if (fd) { printFileName(fd); printFileName(fd); } } Loading Loading @@ -2013,7 +2019,6 @@ void AwesomePlayer::onVideoEvent() { seekmode); seekmode); } } for (;;) { for (;;) { PLAYER_STATS(profileStartOnce, STATS_PROFILE_FIRST_BUFFER(true) /* video */); status_t err = mVideoSource->read(&mVideoBuffer, &options); status_t err = mVideoSource->read(&mVideoBuffer, &options); options.clearSeekTo(); options.clearSeekTo(); Loading
media/libstagefright/OMXCodec.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -3539,6 +3539,7 @@ bool OMXCodec::drainInputBuffer(BufferInfo *info) { info = findEmptyInputBuffer(); info = findEmptyInputBuffer(); } } PLAYER_STATS(profileStartOnce, STATS_PROFILE_FIRST_BUFFER(mIsVideo)); CODEC_LOGV("Calling emptyBuffer on buffer %p (length %d), " CODEC_LOGV("Calling emptyBuffer on buffer %p (length %d), " "timestamp %lld us (%.2f secs)", "timestamp %lld us (%.2f secs)", info->mBuffer, offset, info->mBuffer, offset, Loading