Loading media/libmedia/mediaplayer.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,10 @@ status_t MediaPlayer::setVideoSurface(const sp<Surface>& surface) LOGV("setVideoSurface"); Mutex::Autolock _l(mLock); if (mPlayer == 0) return NO_INIT; if (surface != NULL) return mPlayer->setVideoSurface(surface->getISurface()); else return mPlayer->setVideoSurface(NULL); } // must call with lock held Loading Loading
media/libmedia/mediaplayer.cpp +4 −1 Original line number Diff line number Diff line Loading @@ -233,7 +233,10 @@ status_t MediaPlayer::setVideoSurface(const sp<Surface>& surface) LOGV("setVideoSurface"); Mutex::Autolock _l(mLock); if (mPlayer == 0) return NO_INIT; if (surface != NULL) return mPlayer->setVideoSurface(surface->getISurface()); else return mPlayer->setVideoSurface(NULL); } // must call with lock held Loading