[Asterisk-Dev] say.c cleanup

Kevin P. Fleming kpfleming at digium.com
Wed Jul 13 06:35:53 MST 2005


Luigi Rizzo wrote:

> as you see, if ast_streamfile() fails, ast_stopstream() is not called.
> Can someone explain which way is correct or whether they
> are equivalent ?

There is no harm in calling ast_stopstream() if ast_streamfile() failed, 
since chan->stream will be empty. However, there is no value in calling 
in that situation either :-)



More information about the asterisk-dev mailing list