[asterisk-commits] rmudgett: branch group/media_formats-reviewed-trunk r418611 - /team/group/med...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 14 11:24:07 CDT 2014
Author: rmudgett
Date: Mon Jul 14 11:24:03 2014
New Revision: 418611
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=418611
Log:
format.c, codec.c: Use codec description for the alloc ref log tag.
Modified:
team/group/media_formats-reviewed-trunk/main/codec.c
team/group/media_formats-reviewed-trunk/main/format.c
Modified: team/group/media_formats-reviewed-trunk/main/codec.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats-reviewed-trunk/main/codec.c?view=diff&rev=418611&r1=418610&r2=418611
==============================================================================
--- team/group/media_formats-reviewed-trunk/main/codec.c (original)
+++ team/group/media_formats-reviewed-trunk/main/codec.c Mon Jul 14 11:24:03 2014
@@ -284,7 +284,8 @@
return -1;
}
- codec_new = ao2_alloc_options(sizeof(*codec_new), codec_dtor, AO2_ALLOC_OPT_LOCK_NOLOCK);
+ codec_new = ao2_t_alloc_options(sizeof(*codec_new), codec_dtor,
+ AO2_ALLOC_OPT_LOCK_NOLOCK, S_OR(codec->description, ""));
if (!codec_new) {
ast_log(LOG_ERROR, "Could not allocate a codec with name '%s' of type '%s' and sample rate '%u'\n",
codec->name, ast_codec_media_type2str(codec->type), codec->sample_rate);
Modified: team/group/media_formats-reviewed-trunk/main/format.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats-reviewed-trunk/main/format.c?view=diff&rev=418611&r1=418610&r2=418611
==============================================================================
--- team/group/media_formats-reviewed-trunk/main/format.c (original)
+++ team/group/media_formats-reviewed-trunk/main/format.c Mon Jul 14 11:24:03 2014
@@ -190,7 +190,7 @@
struct ast_format *format;
struct format_interface *format_interface;
- format = ao2_alloc(sizeof(*format), format_destroy);/* BUGBUG this doesn't need a lock. */
+ format = ao2_t_alloc(sizeof(*format), format_destroy, S_OR(codec->description, ""));/* BUGBUG this doesn't need a lock. */
if (!format) {
return NULL;
}
More information about the asterisk-commits
mailing list