Changeset 4444:f3c427934bd3 in roaraudio


Ignore:
Timestamp:
10/09/10 16:39:25 (8 years ago)
Author:
phi
Branch:
default
Message:

only read server infos if requested

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/enumdev.c

    r4435 r4444  
    5151  return -1; 
    5252 
    53  info = roar_server_info(&con); 
    54  if ( info != NULL ) { 
    55   if ( info->location != NULL ) 
    56    c->location = roar_mm_strdup(info->location); 
    57  
    58   if ( info->description != NULL ) 
    59    c->description = roar_mm_strdup(info->description); 
    60  
    61   roar_server_info_free(info); 
     53 if ( (flags & ROAR_ENUM_FLAG_DESC) || (flags & ROAR_ENUM_FLAG_LOCATION) ) { 
     54  info = roar_server_info(&con); 
     55  if ( info != NULL ) { 
     56   if ( info->location != NULL ) 
     57    c->location = roar_mm_strdup(info->location); 
     58 
     59   if ( info->description != NULL ) 
     60    c->description = roar_mm_strdup(info->description); 
     61 
     62   roar_server_info_free(info); 
     63  } 
    6264 } 
    6365 
Note: See TracChangeset for help on using the changeset viewer.