[FFmpeg-cvslog] r13859 - trunk/ffserver.c

Stefano Sabatini stefano.sabatini-lala
Sun Jun 22 12:22:24 CEST 2008


On date Sunday 2008-06-22 02:48:51 -0700, Baptiste Coudurier wrote:
> Hi,
> 
> Stefano Sabatini wrote:
> >> [...]
> >>  
> >> @@ -4446,16 +4463,6 @@ int main(int argc, char **argv)
> >>  
> >>      av_init_random(av_gettime() + (getpid() << 16), &random_state);
> >>  
> >> -    /* address on which the server will handle HTTP connections */
> >> -    my_http_addr.sin_family = AF_INET;
> >> -    my_http_addr.sin_port = htons (8080);
> >> -    my_http_addr.sin_addr.s_addr = htonl (INADDR_ANY);
> >> -
> >> -    /* address on which the server will handle RTSP connections */
> >> -    my_rtsp_addr.sin_family = AF_INET;
> >> -    my_rtsp_addr.sin_port = htons (5454);
> >> -    my_rtsp_addr.sin_addr.s_addr = htonl (INADDR_ANY);
> >> -
> >>      nb_max_connections = 5;
> >>      max_bandwidth = 1000;
> >>      first_stream = NULL;
> > 
> > Hi, in this way we don't have anymore default settings for HTTP and
> > RTSP ports.
> 
> Yes, this is intended.
> 
> > I suggest to keep the above lines, also a new option in the
> > configuration file (RTSPPort?) would be a good idea.
> 
> RTSPPort option already exists.
> 
> > In this case I also suggest to change the Port option name to
> > HTTPPort.
> 
> I don't really see the use, option has been there for a long time, and
> works.
> 
> > Or if you don't want RTSP or HTTP enabled by default
> 
> I want a way to disable RSTP or HTTP, this is IMHO the simplest and
> cleanest way.
> 
> > we can still
> > leave them unspecified, then the user will have to specify the ports
> > in the configuration file, otherwise the corresponding services won't
> > be enabled.
> > 
> 
> Exactly, that's the way it should work IMHO: no port specified -> disabled.

OK, I somehow missed the RTSPPort, for the rest I'm fine with the
modifications.

Regards.




More information about the ffmpeg-cvslog mailing list