mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-11 19:10:40 +00:00
set default port with PORT variable
This commit is contained in:
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…
Reference in New Issue
Block a user