/** * Implements {@link DataSource#disconnect()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#disconnect()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to be disconnected. */ @Override public void disconnect() { dataSource.disconnect(); }
/** * Implements {@link DataSource#disconnect()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#disconnect()} because * the wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet * it still needs to be disconnected. */ @Override public void disconnect() { dataSource.disconnect(); }
/** * Disconnects the effective input <tt>DataSource</tt> described by this * instance if it is already connected. */ synchronized void disconnect() { if (connected) { getEffectiveInDataSource().disconnect(); connected = false; } }
dataSource.disconnect();
captureDevice.disconnect(); captureDeviceIsConnected = false;
/** * Implements {@link DataSource#disconnect()}. Stops and undoes the whole * setup of the very transcoding process i.e. disconnects from the output * <tt>DataSource</tt> of the transcodingProcessor and disposes of the * <tt>transcodingProcessor</tt>. */ @Override public synchronized void disconnect() { if (outputDataSource == null) return; try { stop(); } catch (IOException ioex) { throw new UndeclaredThrowableException(ioex); } outputDataSource.disconnect(); transcodingProcessor.deallocate(); transcodingProcessor.close(); transcodingProcessor = null; outputDataSource = null; }
dataOutput.disconnect();
dataSource.disconnect();
dataSource.disconnect();