243244245246247248249250251252253
if (host == null) { System.out.println("Syntax Error: You must include a host. Use -host to specifiy a hostname or ip address."); System.exit(5); } Resolution streamRes = Resolution.findRes(resolution, refresh); if (bitrate == null) { bitrate = streamRes.defaultBitrate; }
7475767778798081828384
} }); resolution.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent arg0) { Resolution newRes = (Resolution) resolution.getSelectedItem(); bitrate.setValue(newRes.defaultBitrate); } });