[asterisk-dev] [Code Review] 3234: media_formats: Initial channel driver conversion and application conversion

Mark Michelson reviewboard at asterisk.org
Wed Feb 19 13:30:30 CST 2014


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


Page 2 review complete!


/team/file/media_formats-impl/codecs/ex_adpcm.h
<https://reviewboard.asterisk.org/r/3234/#comment20528>

    In all of the ex_<codec_name>.h files that provide a sample, you'll need to do an ast_format_copy to set f.subclass.format. The reason why is that when generating computational cost, the translator code reads in the sample frame and then calls ast_frfree() on the frame. Your changes to main/frame.c will result in the refcount of f.subclass.format being decreased beyond what it should be.



/team/file/media_formats-impl/include/asterisk/channel.h
<https://reviewboard.asterisk.org/r/3234/#comment20529>

    These should all document that they bump the refcount of the passed-in format.



/team/file/media_formats-impl/include/asterisk/format.h
<https://reviewboard.asterisk.org/r/3234/#comment20530>

    A bit of red.



/team/file/media_formats-impl/include/asterisk/mod_format.h
<https://reviewboard.asterisk.org/r/3234/#comment20531>

    This seems like as good a time as any to get rid of all this red while you're in the area.


- Mark Michelson


On Feb. 16, 2014, 3:56 p.m., Joshua Colp wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3234/
> -----------------------------------------------------------
> 
> (Updated Feb. 16, 2014, 3:56 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> This movies basic channel drivers and applications over to the new media formats API.
> 
> 
> Diffs
> -----
> 
>   /team/file/media_formats-impl/pbx/pbx_spool.c 408257 
>   /team/file/media_formats-impl/main/frame.c 408257 
>   /team/file/media_formats-impl/main/format_ng.c 408257 
>   /team/file/media_formats-impl/main/format_cap_ng.c 408257 
>   /team/file/media_formats-impl/main/format_cap.c 408257 
>   /team/file/media_formats-impl/main/format_cache.c 408257 
>   /team/file/media_formats-impl/main/format.c 408257 
>   /team/file/media_formats-impl/main/codec.c 408257 
>   /team/file/media_formats-impl/main/channel_internal_api.c 408257 
>   /team/file/media_formats-impl/main/channel.c 408257 
>   /team/file/media_formats-impl/include/asterisk/translate.h 408257 
>   /team/file/media_formats-impl/include/asterisk/slin.h 408257 
>   /team/file/media_formats-impl/include/asterisk/rtp_engine.h 408257 
>   /team/file/media_formats-impl/include/asterisk/mod_format.h 408257 
>   /team/file/media_formats-impl/include/asterisk/frame.h 408257 
>   /team/file/media_formats-impl/include/asterisk/format_ng.h 408257 
>   /team/file/media_formats-impl/include/asterisk/format_cap_ng.h 408257 
>   /team/file/media_formats-impl/include/asterisk/format_cap.h 408257 
>   /team/file/media_formats-impl/include/asterisk/format_cache.h 408257 
>   /team/file/media_formats-impl/include/asterisk/format.h 408257 
>   /team/file/media_formats-impl/include/asterisk/data.h 408257 
>   /team/file/media_formats-impl/include/asterisk/codec.h 408257 
>   /team/file/media_formats-impl/include/asterisk/channel.h 408257 
>   /team/file/media_formats-impl/codecs/ex_alaw.h 408257 
>   /team/file/media_formats-impl/codecs/ex_adpcm.h 408257 
>   /team/file/media_formats-impl/codecs/codec_adpcm.c 408257 
>   /team/file/media_formats-impl/channels/chan_oss.c 408257 
>   /team/file/media_formats-impl/channels/chan_bridge_media.c 408257 
>   /team/file/media_formats-impl/channels/chan_alsa.c 408257 
>   /team/file/media_formats-impl/apps/confbridge/conf_chan_record.c 408257 
>   /team/file/media_formats-impl/apps/app_waitforsilence.c 408257 
>   /team/file/media_formats-impl/apps/app_voicemail.c 408257 
>   /team/file/media_formats-impl/apps/app_test.c 408257 
>   /team/file/media_formats-impl/apps/app_talkdetect.c 408257 
>   /team/file/media_formats-impl/apps/app_speech_utils.c 408257 
>   /team/file/media_formats-impl/apps/app_sms.c 408257 
>   /team/file/media_formats-impl/apps/app_record.c 408257 
>   /team/file/media_formats-impl/apps/app_originate.c 408257 
>   /team/file/media_formats-impl/apps/app_nbscat.c 408257 
>   /team/file/media_formats-impl/apps/app_mp3.c 408257 
>   /team/file/media_formats-impl/apps/app_mixmonitor.c 408257 
>   /team/file/media_formats-impl/apps/app_milliwatt.c 408257 
>   /team/file/media_formats-impl/apps/app_meetme.c 408257 
>   /team/file/media_formats-impl/apps/app_ices.c 408257 
>   /team/file/media_formats-impl/apps/app_festival.c 408257 
>   /team/file/media_formats-impl/apps/app_dumpchan.c 408257 
>   /team/file/media_formats-impl/apps/app_dictate.c 408257 
>   /team/file/media_formats-impl/apps/app_dahdibarge.c 408257 
>   /team/file/media_formats-impl/apps/app_confbridge.c 408257 
>   /team/file/media_formats-impl/apps/app_chanspy.c 408257 
>   /team/file/media_formats-impl/apps/app_amd.c 408257 
>   /team/file/media_formats-impl/apps/app_alarmreceiver.c 408257 
>   /team/file/media_formats-impl/apps/app_agent_pool.c 408257 
> 
> Diff: https://reviewboard.asterisk.org/r/3234/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Joshua Colp
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140219/d3b21500/attachment-0001.html>


More information about the asterisk-dev mailing list