throws UnsupportedFormatException, IOException {
int format = -1;
Format fmt = null;
double clockRate = 90000;
if (dataSource instanceof PushBufferDataSource) {
PushBufferStream stream =
((PushBufferDataSource) dataSource).getStreams()[streamIndex];
fmt = stream.getFormat();
} else if (dataSource instanceof PullBufferDataSource) {
PullBufferStream stream =
((PullBufferDataSource) dataSource).getStreams()[streamIndex];
fmt = stream.getFormat();
} else {
throw new IOException("Cannot use stream sources");
}
//System.out.println("createSendStream : Trying to find handler for format "+ fmt);
Iterator iter = formatMap.keySet().iterator();