sample/vs_android.cc
/**
 * Restart the streams. During the restart operation subsequent calls to this method will output
 * a warning.
 */
Restart the streams. During the restart operation subsequent calls to this method will output
a warning.
Restart the streams . During the restart operation subsequent calls to this method will output a warning .
void VsAndroidCapture::restartStreams() {
  LOGI("Restarting streams");
  if (restartingLock_.try_lock()) {
    closeAllStreams();
    openAllStreams();
    restartingLock_.unlock();
  } else {
    LOGW("Restart stream operation already in progress - ignoring this request");
  }
}
void VsAndroidCapture :: restartStreams ( ) { LOGI ( " " ) ; if ( restartingLock_ . try_lock ( ) ) { closeAllStreams ( ) ; openAllStreams ( ) ; restartingLock_ . unlock ( ) ; } else { LOGW ( " " ) ; } }
Restart the streams.
Restart the streams .
// We were unable to obtain the restarting lock which means the restart operation is currently // active. This is probably because we received successive "stream disconnected" events. // Internal issue b/63087953