Whitespace cleanup

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@286342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Olle Johansson
2010-09-11 17:35:15 +00:00
parent 3335c96157
commit cc64448e2f
2 changed files with 15 additions and 14 deletions

View File

@@ -914,8 +914,9 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
totalsilence += dspsilence;
}
if (totalsilence > 0)
if (totalsilence > 0) {
*duration -= (totalsilence - 200) / 1000;
}
if (*duration < 0) {
*duration = 0;
}
@@ -929,7 +930,7 @@ static int __ast_play_and_record(struct ast_channel *chan, const char *playfile,
* to trim ANY part of the recording.
*/
if (res > 0 && dspsilence) {
/* rewind only the trailing silence */
/* rewind only the trailing silence */
ast_stream_rewind(others[x], dspsilence - 200);
}
ast_truncstream(others[x]);