set default port with PORT variable

pull/92/merge
Michel Promonet 7 years ago
parent a9e33f504c
commit c41050be5a

@ -388,6 +388,10 @@ int main(int argc, char** argv)
#ifdef HAVE_ALSA #ifdef HAVE_ALSA
snd_pcm_format_t audioFmt = SND_PCM_FORMAT_S16_BE; snd_pcm_format_t audioFmt = SND_PCM_FORMAT_S16_BE;
#endif #endif
const char* defaultPort = getenv("PORT");
if (defaultPort != NULL) {
rtspPort = atoi(defaultPort);
}
// decode parameters // decode parameters
int c = 0; int c = 0;

Loading…
Cancel
Save