Re: [Live-devel] RTSPServer: redeclaration and one cycle only

2008-07-25 Thread Ross Finlayson
Yes, you found a bug on the code. The second declaration of ourSocket was incorrect. This will get fixed in the next release of the code. Also, "do { ... } while (0);" is a common C++ idiom used to create a block of code that's easy to break out of (if an error occurs), without using except

[Live-devel] RTSPServer: redeclaration and one cycle only

2008-07-25 Thread Renato MAURO (Libero)
Hi Ross. Don't worry, this is not an help request, only an explanation one. Watching this code TSPServer* RTSPServer::createNew(UsageEnvironment& env, Port ourPort, UserAuthenticationDatabase* authDatabase, unsigned reclamationTestSeconds) { int ourSocket = -1; do { in