Revision 157c26b4 chunker_player/chunker_player.c
chunker_player/chunker_player.c | ||
---|---|---|
23 | 23 |
#include <napa_log.h> |
24 | 24 |
#endif |
25 | 25 |
|
26 |
#define MANDATORY_PARAMS 2
|
|
26 |
#define MANDATORY_PARAMS 1
|
|
27 | 27 |
|
28 | 28 |
#ifdef _WIN32 |
29 | 29 |
#include <windows.h> |
... | ... | |
95 | 95 |
"\n" |
96 | 96 |
"Mandatory options:\n" |
97 | 97 |
"\t[-c ChannelName]: channel name (from channels.conf)\n" |
98 |
"\t[-p port]: player http port\n\n" |
|
99 | 98 |
"Other options:\n" |
99 |
"\t[-p port]: player http port\n\n" |
|
100 | 100 |
"\t[-q q_thresh]: playout queue size\n" |
101 | 101 |
"\t[-A audiocodec]\n" |
102 | 102 |
"\t[-V videocodec]\n" |
... | ... | |
141 | 141 |
|
142 | 142 |
memset((void*)Channels, 0, (MAX_CHANNELS_NUM*sizeof(SChannel))); |
143 | 143 |
|
144 |
#ifdef HTTPIO |
|
145 |
Port = -1; |
|
146 |
#endif |
|
147 |
#ifdef TCPIO |
|
148 |
Port = -1; |
|
149 |
#endif |
|
144 |
Port = 9876; |
|
145 |
|
|
150 | 146 |
struct MHD_Daemon *daemon = NULL; |
151 | 147 |
SDL_Event event; |
152 | 148 |
OverlayMutex = SDL_CreateMutex(); |
... | ... | |
166 | 162 |
mandatories++; |
167 | 163 |
break; |
168 | 164 |
case 'p': |
169 |
#ifdef HTTPIO |
|
170 |
sscanf(optarg, "%d", &Port); |
|
171 |
#endif |
|
172 |
#ifdef TCPIO |
|
173 | 165 |
sscanf(optarg, "%d", &Port); |
174 |
#endif |
|
175 |
mandatories++; |
|
176 | 166 |
break; |
177 | 167 |
case 'A': |
178 | 168 |
audio_codec = strdup(optarg); |
Also available in: Unified diff