mirror of
https://github.com/mpromonet/v4l2rtspserver
synced 2024-11-11 19:10:40 +00:00
allow -m without arg
This commit is contained in:
parent
b3e4c033ec
commit
4051b3bdf3
4
main.cpp
4
main.cpp
@ -255,7 +255,7 @@ int main(int argc, char** argv)
|
||||
|
||||
// decode parameters
|
||||
int c = 0;
|
||||
while ((c = getopt (argc, argv, "v::Q:O:b:" "I:P:p:m:u:M:ct:S::" "R:U:" "rwBsf::F:W:H:G:" "A:C:a:" "Vh")) != -1)
|
||||
while ((c = getopt (argc, argv, "v::Q:O:b:" "I:P:p:m::u:M:ct:S::" "R:U:" "rwBsf::F:W:H:G:" "A:C:a:" "Vh")) != -1)
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
@ -269,7 +269,7 @@ int main(int argc, char** argv)
|
||||
case 'P': rtspPort = atoi(optarg); break;
|
||||
case 'p': rtspOverHTTPPort = atoi(optarg); break;
|
||||
case 'u': url = optarg; break;
|
||||
case 'm': multicast = true; murl = optarg; break;
|
||||
case 'm': multicast = true; murl = optarg ? optarg : murl; break;
|
||||
case 'M': multicast = true; maddr = optarg; break;
|
||||
case 'c': repeatConfig = false; break;
|
||||
case 't': timeout = atoi(optarg); break;
|
||||
|
Loading…
Reference in New Issue
Block a user