[Pkg-voip-commits] [janus] 276/282: Fixed typos

Jonas Smedegaard dr at jones.dk
Wed Dec 20 21:53:48 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.6-1
in repository janus.

commit 3dc70b702180d5a705fd96e29936ee3184cc48f3
Author: Lorenzo Miniero <lminiero at gmail.com>
Date:   Tue Dec 19 15:10:25 2017 +0100

    Fixed typos
---
 plugins/janus_videoroom.c | 4 +++-
 sdp.c                     | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/plugins/janus_videoroom.c b/plugins/janus_videoroom.c
index 8ad0011..7100b77 100644
--- a/plugins/janus_videoroom.c
+++ b/plugins/janus_videoroom.c
@@ -1228,10 +1228,12 @@ void janus_videoroom_create_session(janus_plugin_session *handle, int *error) {
 
 static void janus_videoroom_notify_participants(janus_videoroom_participant *participant, json_t *msg) {
 	/* participant->room->participants_mutex has to be locked. */
+	if(participant->room == NULL)
+		return;
 	GHashTableIter iter;
 	gpointer value;
 	g_hash_table_iter_init(&iter, participant->room->participants);
-	while (participant->room && !participant->room->destroyed && g_hash_table_iter_next(&iter, NULL, &value)) {
+	while(!participant->room->destroyed && g_hash_table_iter_next(&iter, NULL, &value)) {
 		janus_videoroom_participant *p = value;
 		if(p && p->session && p != participant) {
 			JANUS_LOG(LOG_VERB, "Notifying participant %"SCNu64" (%s)\n", p->user_id, p->display ? p->display : "??");
diff --git a/sdp.c b/sdp.c
index d8de5d4..c60461f 100644
--- a/sdp.c
+++ b/sdp.c
@@ -661,7 +661,7 @@ int janus_sdp_parse_ssrc(void *ice_stream, const char *ssrc_attr, int video) {
 	if(ssrc == 0 || ssrc > G_MAXUINT32)
 		return -3;
 	if(video) {
-		if(stream->video_ssrc_peer == 0) {
+		if(stream->video_ssrc_peer[0] == 0) {
 			stream->video_ssrc_peer[0] = ssrc;
 			JANUS_LOG(LOG_VERB, "[%"SCNu64"] Peer video SSRC: %"SCNu32"\n", handle->handle_id, stream->video_ssrc_peer[0]);
 		} else {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list