Changeset 3711:1a09dfb497d6 in roaraudio


Ignore:
Timestamp:
04/25/10 04:03:25 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

honor $RSD_SERVER

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarrsound/libroarrsound.c

    r3710 r3711  
    138138 
    139139static int libroarrsound_connect (struct libroarrsound * self) { 
    140  char * host = NULL; 
     140 char * host; 
    141141 
    142142 if ( self->flags & LIBROARRSOUND_FLAGS_CONNECTED ) 
    143143  return 0; 
    144144 
    145  if ( self->rsound.host != NULL ) 
    146   host = self->rsound.host; 
     145 host = self->rsound.host; 
     146 
     147 if ( host == NULL ) 
     148  host = getenv("RSD_SERVER"); 
    147149 
    148150 // FIXME: we currently ignore the port. :( 
Note: See TracChangeset for help on using the changeset viewer.