Revision 5e9e29e0 plugins/janus_audiobridge.c

View differences:

plugins/janus_audiobridge.c
41 41
#include "../mutex.h"
42 42
#include "../rtp.h"
43 43
#include "../rtcp.h"
44
#include "../utils.h"
44 45

  
45 46

  
46 47
/* Plugin information */
......
882 883
			}
883 884
			JANUS_PRINT("Opus payload type is %d\n", participant->opus_pt);
884 885
			g_sprintf(sdp, sdp_template,
885
				g_get_monotonic_time(),			/* We need current time here */
886
				g_get_monotonic_time(),			/* We need current time here */
886
				janus_get_monotonic_time(),		/* We need current time here */
887
				janus_get_monotonic_time(),		/* We need current time here */
887 888
				participant->room->room_name,	/* Audio bridge name */
888 889
				participant->opus_pt,			/* Opus payload type */
889 890
				participant->opus_pt,			/* Opus payload type */
......
895 896
				g_strlcat(sdp, "m=video 0 RTP/SAVPF 0\r\n", 1024);				
896 897
			}
897 898
			/* How long will the gateway take to push the event? */
898
			gint64 start = g_get_monotonic_time();
899
			gint64 start = janus_get_monotonic_time();
899 900
			int res = gateway->push_event(msg->handle, &janus_audiobridge_plugin, msg->transaction, event_text, type, sdp);
900
			JANUS_PRINT("  >> Pushing event: %d (took %"SCNu64" ms)\n", res, g_get_monotonic_time()-start);
901
			JANUS_PRINT("  >> Pushing event: %d (took %"SCNu64" ms)\n", res, janus_get_monotonic_time()-start);
901 902
			if(res != JANUS_OK) {
902 903
				/* TODO Failed to negotiate? We should remove this participant */
903 904
			} else {

Also available in: Unified diff