Loading services/audioflinger/Threads.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -2688,7 +2688,8 @@ status_t AudioFlinger::PlaybackThread::getTimestamp_l(AudioTimestamp& timestamp) if (mNormalSink != 0) { if (mNormalSink != 0) { return mNormalSink->getTimestamp(timestamp); return mNormalSink->getTimestamp(timestamp); } } if ((mType == OFFLOAD || mType == DIRECT) && mOutput->stream->get_presentation_position) { if ((mType == OFFLOAD || mType == DIRECT) && mOutput != NULL && mOutput->stream->get_presentation_position) { uint64_t position64; uint64_t position64; int ret = mOutput->stream->get_presentation_position( int ret = mOutput->stream->get_presentation_position( mOutput->stream, &position64, ×tamp.mTime); mOutput->stream, &position64, ×tamp.mTime); Loading Loading
services/audioflinger/Threads.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -2688,7 +2688,8 @@ status_t AudioFlinger::PlaybackThread::getTimestamp_l(AudioTimestamp& timestamp) if (mNormalSink != 0) { if (mNormalSink != 0) { return mNormalSink->getTimestamp(timestamp); return mNormalSink->getTimestamp(timestamp); } } if ((mType == OFFLOAD || mType == DIRECT) && mOutput->stream->get_presentation_position) { if ((mType == OFFLOAD || mType == DIRECT) && mOutput != NULL && mOutput->stream->get_presentation_position) { uint64_t position64; uint64_t position64; int ret = mOutput->stream->get_presentation_position( int ret = mOutput->stream->get_presentation_position( mOutput->stream, &position64, ×tamp.mTime); mOutput->stream, &position64, ×tamp.mTime); Loading