Revision ee1a01d4 chunker_streamer/chunker_streamer.c

View differences:

chunker_streamer/chunker_streamer.c
687 687
	}
688 688
#endif
689 689

  
690
	// read the configuration file
691
	cmeta = chunkerInit();
692
	if (!outside_world_url) {
693
		outside_world_url = strdup(cmeta->outside_world_url);
694
	}
695
	switch(cmeta->strategy)
696
	{
697
		case 1:
698
			chunkFilled = chunkFilledSizeStrategy;
699
			break;
700
		default:
701
			chunkFilled = chunkFilledFramesStrategy;
702
	}
703

  
690 704
#ifdef TCPIO
691 705
	static char peer_ip[16];
692 706
	static int peer_port;
......
706 720
#endif
707 721

  
708 722
restart:
709
	// read the configuration file
710
	cmeta = chunkerInit();
711
	if (!outside_world_url) {
712
		outside_world_url = strdup(cmeta->outside_world_url);
713
	}
714
	switch(cmeta->strategy)
715
	{
716
		case 1:
717
			chunkFilled = chunkFilledSizeStrategy;
718
			break;
719
		default:
720
			chunkFilled = chunkFilledFramesStrategy;
721
	}
722
		
723 723
	if(live_source)
724 724
		fprintf(stderr, "INIT: Using LIVE SOURCE TimeStamps\n");
725 725
	if(offset_av)
......
1348 1348
	free(frame);
1349 1349
	av_free(video_outbuf);
1350 1350
	av_free(audio_outbuf);
1351
	free(cmeta);
1352 1351

  
1353 1352
	// Free the YUV frame
1354 1353
	av_free(pFrame1);
......
1416 1415
		goto restart;
1417 1416
	}
1418 1417

  
1418
	free(cmeta);
1419

  
1419 1420
#ifdef TCPIO
1420 1421
	for (i=0; i < (passthrough?1:0) + qualitylevels + (indexchannel?1:0); i++) {
1421 1422
		finalizeTCPChunkPusher(outstream[i].output);

Also available in: Unified diff