[asterisk-commits] file: branch group/media_formats r406483 - /team/group/media_formats/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jan 25 07:35:34 CST 2014


Author: file
Date: Sat Jan 25 07:35:24 2014
New Revision: 406483

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=406483
Log:
Tweak format comparison. If the structure is the same (which it can be now) it's, well, equal.

Modified:
    team/group/media_formats/main/format_ng.c

Modified: team/group/media_formats/main/format_ng.c
URL: http://svnview.digium.com/svn/asterisk/team/group/media_formats/main/format_ng.c?view=diff&rev=406483&r1=406482&r2=406483
==============================================================================
--- team/group/media_formats/main/format_ng.c (original)
+++ team/group/media_formats/main/format_ng.c Sat Jan 25 07:35:24 2014
@@ -180,6 +180,10 @@
 
 enum ast_format_cmp_res ast_format_cmp(const struct ast_format *format1, const struct ast_format *format2)
 {
+	if (format1 == format2) {
+		return AST_FORMAT_CMP_EQUAL;
+	}
+
 	if (format1->codec != format2->codec) {
 		return AST_FORMAT_CMP_NOT_EQUAL;
 	}




More information about the asterisk-commits mailing list