In liveMedia/RTSPServer.cpp, on line 1252, there's a multi clause if statement that, as formatted, looks like you want it to be evaluated in a way that precedence rules say you will get a surprise.
The line looks like this: if (streamingMode == RTP_TCP && rtpChannelId == 0xFF || streamingMode != RTP_TCP && ourClientConnection->fClientOutputSocket != ourClientConnection->fClientInputSocket) {...} It looks like you expect it to be evaluated like this: if ((streamingMode == RTP_TCP && rtpChannelId == 0xFF || streamingMode != RTP_TCP) && (ourClientConnection->fClientOutputSocket != ourClientConnection->fClientInputSocket)) {...} The compiler will actually give you this: if ((streamingMode == RTP_TCP && rtpChannelId == 0xFF) || (streamingMode != RTP_TCP && ourClientConnection->fClientOutputSocket != ourClientConnection->fClientInputSocket)) {...} because && has slightly higher precedence than ||. // Wally, hopefully not wasting your time. _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel