Revision 806f4d41 plugins/janus_videoroom.c

View differences:

plugins/janus_videoroom.c
1436 1436
			goto error;
1437 1437
		}
1438 1438
		/* A secret may be required for this action */
1439
		JANUS_CHECK_SECRET(videoroom->room_secret, root,
1440
			error_code, error_cause, TRUE,
1439
		JANUS_CHECK_SECRET(videoroom->room_secret, root, "secret", error_code, error_cause,
1441 1440
			JANUS_VIDEOROOM_ERROR_MISSING_ELEMENT, JANUS_VIDEOROOM_ERROR_INVALID_ELEMENT, JANUS_VIDEOROOM_ERROR_UNAUTHORIZED);
1442 1441
		if(error_code != 0) {
1443 1442
			janus_mutex_unlock(&rooms_mutex);
......
1566 1565
			goto error;
1567 1566
		}
1568 1567
		/* A secret may be required for this action */
1569
		JANUS_CHECK_SECRET(videoroom->room_secret, root,
1570
			error_code, error_cause, TRUE,
1568
		JANUS_CHECK_SECRET(videoroom->room_secret, root, "secret", error_code, error_cause,
1571 1569
			JANUS_VIDEOROOM_ERROR_MISSING_ELEMENT, JANUS_VIDEOROOM_ERROR_INVALID_ELEMENT, JANUS_VIDEOROOM_ERROR_UNAUTHORIZED);
1572 1570
		if(error_code != 0) {
1573 1571
			janus_mutex_unlock(&rooms_mutex);
......
1660 1658
			goto error;
1661 1659
		}
1662 1660
		/* A secret may be required for this action */
1663
		JANUS_CHECK_SECRET(videoroom->room_secret, root,
1664
			error_code, error_cause, TRUE,
1661
		JANUS_CHECK_SECRET(videoroom->room_secret, root, "secret", error_code, error_cause,
1665 1662
			JANUS_VIDEOROOM_ERROR_MISSING_ELEMENT, JANUS_VIDEOROOM_ERROR_INVALID_ELEMENT, JANUS_VIDEOROOM_ERROR_UNAUTHORIZED);
1666 1663
		if(error_code != 0) {
1667 1664
			janus_mutex_unlock(&rooms_mutex);
......
2301 2298
				goto error;
2302 2299
			}
2303 2300
			/* A pin may be required for this action */
2304
			JANUS_CHECK_PIN(videoroom->room_pin, root,
2305
				error_code, error_cause, TRUE,
2301
			JANUS_CHECK_SECRET(videoroom->room_pin, root, "pin", error_code, error_cause,
2306 2302
				JANUS_VIDEOROOM_ERROR_MISSING_ELEMENT, JANUS_VIDEOROOM_ERROR_INVALID_ELEMENT, JANUS_VIDEOROOM_ERROR_UNAUTHORIZED);
2307 2303
			if(error_code != 0) {
2308 2304
				janus_mutex_unlock(&rooms_mutex);

Also available in: Unified diff