Changeset 6cdb3e2829ba401c9781e1532479db658d87c69b
- Timestamp:
- 14/09/06 22:31:58
(2 years ago)
- Author:
- Christophe Mutricy <xtophe@videolan.org>
- git-committer:
- Christophe Mutricy <xtophe@videolan.org> 1158265918 +0000
- git-parent:
[3ef49160506d1ae277c561dc934415e9ae918d55]
- git-author:
- Christophe Mutricy <xtophe@videolan.org> 1158265918 +0000
- Message:
Use var_ instead of config_ (closes #740)
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r5b880a5 |
r6cdb3e2 |
|
| 127 | 127 | char psz_tmp[10]; |
|---|
| 128 | 128 | |
|---|
| 129 | | psz_address = config_GetPsz( p_intf, "http-host" ); |
|---|
| | 129 | var_Create(p_intf->p_libvlc, "http-host", VLC_VAR_STRING ); |
|---|
| | 130 | psz_address=var_GetString(p_intf->p_libvlc, "http-host"); |
|---|
| | 131 | if( !psz_address || !*psz_address ) |
|---|
| | 132 | { |
|---|
| | 133 | psz_address = config_GetPsz( p_intf, "http-host" ); |
|---|
| | 134 | } |
|---|
| 130 | 135 | if( psz_address != NULL ) |
|---|
| 131 | 136 | { |
|---|
| … | … | |
| 260 | 265 | |
|---|
| 261 | 266 | /* Ugly hack to allow to run several HTTP servers on different ports. */ |
|---|
| 262 | | sprintf( psz_tmp, ":%d", i_port + 1 ); |
|---|
| 263 | | config_PutPsz( p_intf, "http-host", psz_tmp ); |
|---|
| | 267 | sprintf( psz_tmp, "%s:%d", psz_address, i_port + 1 ); |
|---|
| | 268 | var_SetString( p_intf->p_libvlc, "http-host", psz_tmp ); |
|---|
| 264 | 269 | |
|---|
| 265 | 270 | msg_Dbg( p_intf, "base %s:%d", psz_address, i_port ); |
|---|