diff options
author | Eric Laurent <elaurent@google.com> | 2009-08-11 01:26:35 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2009-08-11 09:57:45 -0700 |
commit | 5a22b909c9e8fc0d9321dcc014706a790b26b971 (patch) | |
tree | 38809879fccb40e3e098f1196801089cfd6ce642 /media/libmedia | |
parent | f4148b55c5d6f68b22462e3880015fefa91ae7c6 (diff) | |
download | frameworks_av-5a22b909c9e8fc0d9321dcc014706a790b26b971.zip frameworks_av-5a22b909c9e8fc0d9321dcc014706a790b26b971.tar.gz frameworks_av-5a22b909c9e8fc0d9321dcc014706a790b26b971.tar.bz2 |
Fix issue 2045983 ToneGenerator: fix void statement.
There is a void statement at line 917 of ToneGenerator.cpp: mState == TONE_IDLE;
This problem is harmless as in current code this execution path is never taken; it can only happen if a "new" operator fails in prepareWave() which is a case we usually consider as unlikely in android audio framework.
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/ToneGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/ToneGenerator.cpp b/media/libmedia/ToneGenerator.cpp index 3ea64ae..799c349 100644 --- a/media/libmedia/ToneGenerator.cpp +++ b/media/libmedia/ToneGenerator.cpp @@ -914,7 +914,7 @@ bool ToneGenerator::startTone(int toneType) { } } } else { - mState == TONE_IDLE; + mState = TONE_IDLE; } } else { LOGV("Delayed start\n"); |