Revision becc0c84 janus.c

View differences:

janus.c
33 33
#include "debug.h"
34 34
#include "rtcp.h"
35 35
#include "auth.h"
36
#include "record.h"
36 37
#include "events.h"
37 38

  
38 39

  
......
3494 3495
	item = janus_config_get_item_drilldown(config, "general", "token_auth");
3495 3496
	janus_auth_init(item && item->value && janus_is_true(item->value));
3496 3497

  
3498
	/* Initialize the recorder code */
3499
	item = janus_config_get_item_drilldown(config, "general", "recordings_tmp_ext");
3500
	if(item && item->value) {
3501
		janus_recorder_init(TRUE, item->value);
3502
	} else {
3503
		janus_recorder_init(FALSE, NULL);
3504
	}
3505

  
3497 3506
	/* Setup ICE stuff (e.g., checking if the provided STUN server is correct) */
3498 3507
	char *stun_server = NULL, *turn_server = NULL;
3499 3508
	uint16_t stun_port = 0, turn_port = 0;
......
4173 4182
		g_hash_table_destroy(eventhandlers_so);
4174 4183
	}
4175 4184

  
4185
	janus_recorder_deinit();
4186

  
4176 4187
	JANUS_PRINT("Bye!\n");
4177 4188

  
4178 4189
	exit(0);

Also available in: Unified diff