diff options
author | Johan Redestig <johan.redestig@sonymobile.com> | 2012-08-28 09:37:23 +0200 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonymobile.com> | 2012-11-19 11:50:05 +0100 |
commit | 9b17d0a74f6774441aaebec6a44f126cd6f4eeaf (patch) | |
tree | c9b0142c64bbfee5ceec0660d42e90c51c104765 /voip/java/android | |
parent | 4299f63e54dceeaaa44a057ba03f0881834491ec (diff) | |
download | frameworks_base-9b17d0a74f6774441aaebec6a44f126cd6f4eeaf.zip frameworks_base-9b17d0a74f6774441aaebec6a44f126cd6f4eeaf.tar.gz frameworks_base-9b17d0a74f6774441aaebec6a44f126cd6f4eeaf.tar.bz2 |
Make AudioGroup.add locale safe
Explicitly use Locale.US in AudioGroup.add to avoid
unexpected results in some locales.
Change-Id: Ifb477ca590f630747e09e38ac2246d284b5c5bfc
Diffstat (limited to 'voip/java/android')
-rw-r--r-- | voip/java/android/net/rtp/AudioGroup.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/voip/java/android/net/rtp/AudioGroup.java b/voip/java/android/net/rtp/AudioGroup.java index 8c19062..8faeb88 100644 --- a/voip/java/android/net/rtp/AudioGroup.java +++ b/voip/java/android/net/rtp/AudioGroup.java @@ -19,6 +19,7 @@ package android.net.rtp; import android.media.AudioManager; import java.util.HashMap; +import java.util.Locale; import java.util.Map; /** @@ -146,7 +147,7 @@ public class AudioGroup { if (!mStreams.containsKey(stream)) { try { AudioCodec codec = stream.getCodec(); - String codecSpec = String.format("%d %s %s", codec.type, + String codecSpec = String.format(Locale.US, "%d %s %s", codec.type, codec.rtpmap, codec.fmtp); int id = nativeAdd(stream.getMode(), stream.getSocket(), stream.getRemoteAddress().getHostAddress(), |