Fixed ticket #140: Unable to play next tone after stop is called on tone generator (thanks Antonio F. Cano)

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@1009 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Benny Prijono 2007-02-27 00:12:26 +00:00
parent cf77042064
commit cb041825d8
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}