[asterisk-dev] [Code Review] 3787: media_format: Make ast_format_cache_get_slin_by_rate() not return a ref bumped format.

rmudgett reviewboard at asterisk.org
Tue Jul 15 14:32:03 CDT 2014


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3787/
-----------------------------------------------------------

(Updated July 15, 2014, 2:32 p.m.)


Status
------

This change has been marked as submitted.


Review request for Asterisk Developers.


Changes
-------

Committed in revision 418709


Repository: Asterisk


Description
-------

There are a few places where the ref originally returned by ast_format_cache_get_slin_by_rate() is not really needed.  The ast_format_cache_get_slin_by_rate() is really a convenience function to pick the best global ast_format_slinxxx value which is accessed directly throughout the code.

* Simplified many uses of ast_format_cache_get_slin_by_rate() to not have to unref the format.

* Added some BUGBUG comments about the translation code trashing the normal static frame setup when a special frame is needed in codec_dahdi.c and codec_speex.c.


Diffs
-----

  /team/group/media_formats-reviewed-trunk/res/res_stasis_snoop.c 418654 
  /team/group/media_formats-reviewed-trunk/main/slinfactory.c 418654 
  /team/group/media_formats-reviewed-trunk/main/format_cache.c 418654 
  /team/group/media_formats-reviewed-trunk/main/channel.c 418654 
  /team/group/media_formats-reviewed-trunk/main/audiohook.c 418654 
  /team/group/media_formats-reviewed-trunk/include/asterisk/format_cache.h 418654 
  /team/group/media_formats-reviewed-trunk/codecs/codec_speex.c 418654 
  /team/group/media_formats-reviewed-trunk/codecs/codec_resample.c 418654 
  /team/group/media_formats-reviewed-trunk/codecs/codec_dahdi.c 418654 
  /team/group/media_formats-reviewed-trunk/bridges/bridge_softmix.c 418654 
  /team/group/media_formats-reviewed-trunk/apps/app_mixmonitor.c 418654 
  /team/group/media_formats-reviewed-trunk/apps/app_jack.c 418654 

Diff: https://reviewboard.asterisk.org/r/3787/diff/


Testing
-------


Thanks,

rmudgett

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140715/1d242aef/attachment.html>


More information about the asterisk-dev mailing list