Revision b8237291 plugins/janus_audiobridge.c

View differences:

plugins/janus_audiobridge.c
2443 2443
			janus_audiobridge_participant *participant = (janus_audiobridge_participant *)session->participant;
2444 2444
			char sdp[1024];
2445 2445
			/* What is the Opus payload type? */
2446
			participant->opus_pt = 0;
2447
			char *fmtp = strstr(msg->sdp, "opus/48000");
2448
			if(fmtp != NULL) {
2449
				fmtp -= 5;
2450
				fmtp = strstr(fmtp, ":");
2451
				if(fmtp)
2452
					fmtp++;
2453
				participant->opus_pt = atoi(fmtp);
2454
			}
2446
			participant->opus_pt = janus_get_opus_pt(msg->sdp);
2455 2447
			JANUS_LOG(LOG_VERB, "Opus payload type is %d\n", participant->opus_pt);
2456 2448
			g_snprintf(sdp, 1024, sdp_template,
2457 2449
				janus_get_real_time(),			/* We need current time here */

Also available in: Unified diff