void AwesomePlayer::onVideoEvent() { ... if (mVideoRenderer == NULL) { initRenderer_l(); } ... } void AwesomePlayer::initRenderer_l() { if (!strncmp("OMX.", component, 4)) { mVideoRenderer = new AwesomeRemoteRenderer( mClient.interface()->createRenderer( mISurface, component, ...)); .......... (2) } else { mVideoRenderer = new AwesomeLocalRenderer( ..., component, mISurface); ............................ (3) } } |