summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-02-27 00:13:47 +0000
committerBenny Prijono <bennylp@teluu.com>2007-02-27 00:13:47 +0000
commit97f985195ec7fbece16575563388ab0d21dccd7a (patch)
tree800ab97b8e6da403e55cfd4e559ec64501edab5a
parent00483d0b92559121fc04e57173cc73289175c8fd (diff)
Fixed ticket #139: Unable to play next tone after stop is called on tone generator (thanks Antonio F. Cano)
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/pjproject-0.5-stable@1010 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjmedia/src/pjmedia/tonegen.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pjmedia/src/pjmedia/tonegen.c b/pjmedia/src/pjmedia/tonegen.c
index 67b726dc..195fb6c8 100644
--- a/pjmedia/src/pjmedia/tonegen.c
+++ b/pjmedia/src/pjmedia/tonegen.c
@@ -355,7 +355,10 @@ PJ_DEF(pj_status_t) pjmedia_tonegen_stop(pjmedia_port *port)
{
struct tonegen *tonegen = (struct tonegen*) port;
PJ_ASSERT_RETURN(port->info.signature == SIGNATURE, PJ_EINVAL);
- return tonegen->count = 0;
+ tonegen->count = 0;
+ tonegen->cur_digit = 0;
+ tonegen->dig_samples = 0;
+ return PJ_SUCCESS;
}