258259260261262263264265266267268
// TODO: is the processor supposed to do this? if (destDataSink != null) { logger.fine("Stopping dest datasink"); destDataSink.stop(); logger.fine("Closing dest datasink"); destDataSink.close(); } // if (player != null)
177178179180181182183184185186187
IOException ex2 = new IOException("Failed to create a DataSink for the given output MediaLocator"); ex2.initCause(ex); throw ex2; } catch (InterruptedException ex) { if (dataSink != null) { dataSink.stop(); } throw new InterruptedIOException("Video creation interrupted"); } finally { if (dataSink != null) { dataSink.close();