public VehicleDataSource addSource ( VehicleDataSource source ) { source . setCallback ( this ) ; mSources . add ( source ) ; if ( isActive ( ) ) { source . onPipelineActivated ( ) ; } else { source . onPipelineDeactivated ( ) ; } return source ; }
Add a new source to the pipeline .