[MPlayer-dev-eng] [PATCH] fix rtsp_port for multiple streams

wm4 nfxjfg at googlemail.com
Thu Sep 20 21:12:22 CEST 2012


On Thu, 20 Sep 2012 14:35:25 -0400
Tamas Vincze <tom at vincze.org> wrote:

> Tried it and works correctly, the port doesn't increment for the next 
> URL. Not sure why though...

Because the rtsp_port variable is referenced by an option, and
as such is restored to the previous value when playback of the file
ends. You can find the option in cfg-common.h. Any option, unless it is
flagged with CONF_GLOBAL, will be restored. The actual copying of
the options is done by the generic code in m_config.c and m_option.c (so
you won't find any place where rtsp_port is copied explicitly).


More information about the MPlayer-dev-eng mailing list