/** * Gets the output streams that this instance provides. Some of them may be * the result of transcoding the tracks of the input <tt>DataSource</tt> of * this instance in the output <tt>Format</tt> of this instance. * * @return an array of <tt>SourceStream</tt>s which represents the * collection of output streams that this instance provides */ public synchronized SourceStream[] getStreams() { if (outputDataSource instanceof PushBufferDataSource) return ((PushBufferDataSource) outputDataSource).getStreams(); if (outputDataSource instanceof PullBufferDataSource) return ((PullBufferDataSource) outputDataSource).getStreams(); if (outputDataSource instanceof PushDataSource) return ((PushDataSource) outputDataSource).getStreams(); if (outputDataSource instanceof PullDataSource) return ((PullDataSource) outputDataSource).getStreams(); return new SourceStream[0]; }
: ((PushDataSource) inDataSource).getStreams())
= ((PushDataSource) dataSource).getStreams();