diff options
author | Boris Grozev <boris@jitsi.org> | 2014-07-20 14:03:58 +0300 |
---|---|---|
committer | Boris Grozev <boris@jitsi.org> | 2014-07-20 14:03:58 +0300 |
commit | b997f6b4b179a64ec00a06e4401090356f082c1d (patch) | |
tree | 742c3746f52b2d732b65fdc1f7f17094a1aacf2e /src | |
parent | 1cf54b6fe77ba5f275ee7861fda1bab8b5e2c1c2 (diff) | |
download | jitsi-b997f6b4b179a64ec00a06e4401090356f082c1d.zip jitsi-b997f6b4b179a64ec00a06e4401090356f082c1d.tar.gz jitsi-b997f6b4b179a64ec00a06e4401090356f082c1d.tar.bz2 |
Uses the configured format, instead of the hard-coded default format, when the chosen filename has no suitable extension.
Diffstat (limited to 'src')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/call/RecordButton.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/call/RecordButton.java b/src/net/java/sip/communicator/impl/gui/main/call/RecordButton.java index 856322e..8d0ad91 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/RecordButton.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/RecordButton.java @@ -442,8 +442,14 @@ public class RecordButton 0, callFilename.lastIndexOf('.')); } + String configuredFormat + = configuration.getString(Recorder.FORMAT); callFormat - = SoundFileUtils.DEFAULT_CALL_RECORDING_FORMAT; + = (configuredFormat != null + && configuredFormat.length() != 0) + ? configuredFormat + : SoundFileUtils.DEFAULT_CALL_RECORDING_FORMAT; + callFilename += '.' + callFormat; } configuration.setProperty(Recorder.FORMAT, callFormat); |