Fixes current configurations of RTP pacing threshold that may have used a value bigger than the newly configured maximum value.

cusax-fix
Yana Stamcheva 13 years ago
parent c63b98607a
commit 8a95f91357

@ -603,8 +603,14 @@ public void actionPerformed(ActionEvent e)
}
});
int videoMaxBandwith = deviceConfig.getVideoRTPPacingThreshold();
// Accord the current value with the maximum allowed value. Fixes
// existing configurations that have been set to a number larger than
// the advised maximum value.
videoMaxBandwith = ((videoMaxBandwith > 999) ? 999 : videoMaxBandwith);
final JSpinner videoMaxBandwidth = new JSpinner(new SpinnerNumberModel(
deviceConfig.getVideoRTPPacingThreshold(),
videoMaxBandwith,
1, 999, 1));
videoMaxBandwidth.addChangeListener(new ChangeListener()
{

Loading…
Cancel
Save