Re: [Live-devel] problem about uninitialized local unsigned variable‏

2012-08-29 Thread Ross Finlayson
> then the first rtsp request is "rtsp://localhost:8854" and not contain > "mp3test", this time the next function call "parseRTSPRequestString" will > failed, and the var "contentLength" is not a sure value. Yes, this is a bug. The "contentLength" needs to be initialized (to 0) before calling

[Live-devel] problem about uninitialized local unsigned variable‏

2012-08-29 Thread kingking kuo
Hi, I use mplayer to visit rtsp://localhost:8854/mp3test, If RTSPServer recv the request , RTSPServer will call the function "handleRequestBytes",In this function we see the local unsigned variable "contentLength", and this local variable is not init , thus the variable's init value is not sure