Revision ea2bce5b src/pstreamer.c

View differences:

src/pstreamer.c
29 29
#include<debug.h>
30 30

  
31 31
#define MAX_PSINSTANCE_CONFIG_LENGTH 255
32
#define STREAMER_PEER_CONF "port=%d,dechunkiser=rtp,base=%d,addr=%s"
33
#define STREAMER_SOURCE_CONF "port=%d,chunkiser=rtp,base=%d,addr=%s,max_delay_ms=50"
32
#define STREAMER_PEER_CONF "port=%d,dechunkiser=rtp,audio=%d,video=%d,addr=%s"
33
#define STREAMER_SOURCE_CONF "port=%d,chunkiser=rtp,audio=%d,video=%d,addr=%s,max_delay_ms=5,chunk_size=20"
34
//#define STREAMER_SOURCE_CONF "port=%d,chunkiser=rtp,base=%d,addr=%s,max_delay_ms=5,chunk_size=200,rfc3551=1"
34 35

  
35 36
struct pstreamer {
36 37
	char source_ip[MAX_IPADDR_LENGTH];
......
61 62
	char config[MAX_PSINSTANCE_CONFIG_LENGTH];
62 63
	int count;
63 64

  
64
	count = snprintf(config, MAX_PSINSTANCE_CONFIG_LENGTH, fmt, ps->base_port, ps->base_port+1, rtp_ip);
65
	count = snprintf(config, MAX_PSINSTANCE_CONFIG_LENGTH, fmt, ps->base_port, ps->base_port+1, ps->base_port+3, rtp_ip);
65 66
	if (opts && (size_t)(MAX_PSINSTANCE_CONFIG_LENGTH - count) > strlen(opts))
66 67
		snprintf(config + count, MAX_PSINSTANCE_CONFIG_LENGTH - count, ",%s", opts);
67 68
	ps->psc = psinstance_create(ps->source_ip, ps->source_port, config);

Also available in: Unified diff