Revision 036a95a6

View differences:

chunker_streamer/chunker_streamer.c
596 596
#ifdef DEBUG_ANOMALIES
597 597
			fprintf(stderr, "READLOOP: pts BASE anomaly detected number %d\n", pts_anomalies_counter);
598 598
#endif
599
			if(newtime_anomaly_threshold >=0 && live_source) { //reset just in case of live source
599
			if(pts_anomaly_threshold >=0 && live_source) { //reset just in case of live source
600 600
				if(pts_anomalies_counter > pts_anomaly_threshold) {
601 601
					pts_anomalies_counter = 0;
602 602
					FirstTimeVideo = 1;
......
617 617
#endif
618 618
		}
619 619

  
620
		if(pts_anomaly_threshold >=0 && newtime_anomalies_counter > newtime_anomaly_threshold) {
620
		if(newtime_anomaly_threshold >=0 && newtime_anomalies_counter > newtime_anomaly_threshold) {
621 621
			if(live_source) { //restart just in case of live source
622 622
#ifdef DEBUG_ANOMALIES
623 623
				fprintf(stderr, "READLOOP: too many NEGATIVE TIMESTAMPS anomalies. Restarting.\n");

Also available in: Unified diff