aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBoris Grozev <boris@jitsi.org>2014-07-20 14:03:58 +0300
committerBoris Grozev <boris@jitsi.org>2014-07-20 14:03:58 +0300
commitb997f6b4b179a64ec00a06e4401090356f082c1d (patch)
tree742c3746f52b2d732b65fdc1f7f17094a1aacf2e /src
parent1cf54b6fe77ba5f275ee7861fda1bab8b5e2c1c2 (diff)
downloadjitsi-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.java8
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);