[Asterisk-code-review] Streams: Add features for Advanced Codec Negotiation (asterisk[master])

Joshua Colp asteriskteam at digium.com
Mon Jun 29 10:35:02 CDT 2020


Joshua Colp has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/14577 )

Change subject: Streams:  Add features for Advanced Codec Negotiation
......................................................................


Patch Set 3: Code-Review-1

(18 comments)

https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/format_cap.h 
File include/asterisk/format_cap.h:

https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/format_cap.h@310 
PS2, Line 310:  * If buf is NULL the function will internally allocate memory for the ast_str and
> > Is there precedent for doing things like this already? (Just out of curiosity). […]
Ack


https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/stream.h 
File include/asterisk/stream.h:

https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/stream.h@129 
PS2, Line 129: 	/*! Which if the lists to "prefer" */
> Ack
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/stream.h@207 
PS2, Line 207: /*!
> Ack
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/stream.h@289 
PS2, Line 289: 	enum ast_stream_codec_negotiation_prefs_prefer_values prefer;
> Ack
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/stream.h@634 
PS2, Line 634:  * The resulting stream will contain all of the attributes of the pending stream
> > By attributes do you mean metadata and such as well? […]
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/stream.h@647 
PS2, Line 647: 	struct ast_stream *configired_stream, struct ast_stream_codec_negotiation_prefs *prefs,
> Ack
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/stream.h@735 
PS2, Line 735: int ast_stream_topology_get_valid_count(const struct ast_stream_topology *topology);
> > I don't like valid as a name here... what about get_active_count? […]
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/include/asterisk/stream.h@883 
PS2, Line 883:  * \note The stream topology is NOT altered by this function.
> Ack
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/format_cap.c 
File main/format_cap.c:

https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/format_cap.c@61 
PS2, Line 61: 	/*! \brief internal string to hold prefernece names */
> Ack
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/format_cap.c@720 
PS2, Line 720: 		if (!cap->preference_names) {
> > This will come up later - but is this safe to do? What if two threads access it? Would using threa […]
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/stream.c 
File main/stream.c:

https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/stream.c@117 
PS2, Line 117: 	struct ast_str *display_str;
> > doxygen […]
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/stream.c@130 
PS2, Line 130: 	int final;
> Ack
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/stream.c@353 
PS2, Line 353: 		if (!stream->display_str) {
> > Does this present a race condition whereby two threads call this at the same time? (Streams are su […]
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/stream.c@961 
PS2, Line 961: 		if (!topology->display_str) {
> > Same question here as I had for streams - is this safe? […]
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/2/main/stream.c@1092 
PS2, Line 1092: 	return ao2_bump(joint_topology);
> Ack
Done


https://gerrit.asterisk.org/c/asterisk/+/14577/3/main/stream.c 
File main/stream.c:

https://gerrit.asterisk.org/c/asterisk/+/14577/3/main/stream.c@130 
PS3, Line 130: 	struct ast_str *display_str;
This can be removed now


https://gerrit.asterisk.org/c/asterisk/+/14577/3/main/stream.c@1057 
PS3, Line 1057: 	return ao2_bump(joint_topology);
Does this still need to ao2_bump?


https://gerrit.asterisk.org/c/asterisk/+/14577/2/tests/test_format_cap.c 
File tests/test_format_cap.c:

https://gerrit.asterisk.org/c/asterisk/+/14577/2/tests/test_format_cap.c@1159 
PS2, Line 1159: 	ast_str_reset(buffer);
> > Has the behavior of the underlying function been altered for ast_format_cap_get_names such that yo […]
Done



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/14577
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I2df77dedd0c72c52deb6e329effe057a8e06cd56
Gerrit-Change-Number: 14577
Gerrit-PatchSet: 3
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: Joshua Colp <jcolp at sangoma.com>
Gerrit-Comment-Date: Mon, 29 Jun 2020 15:35:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Joshua Colp <jcolp at sangoma.com>
Comment-In-Reply-To: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20200629/b587215c/attachment-0001.html>


More information about the asterisk-code-review mailing list