Changeset 5884:2cea563f456d in roaraudio


Ignore:
Timestamp:
01/27/13 03:55:41 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

small updated: avoid generation of invalid paths as well as adding support for magic keyword "universal" for product parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/config.c

    r5846 r5884  
    581581 const char * b; 
    582582 
     583 if ( product != NULL && !strcmp(product, "universal") ) { 
     584  null_as_universal = 1; 
     585  product = NULL; 
     586 } 
     587 
    583588 if ( product == NULL ) { 
    584589  if ( null_as_universal ) { 
     
    694699 
    695700 if ( ((null_as_universal || product != NULL) && !path->with_product) || 
    696       (provider != NULL && !path->with_provider) ) { 
     701      (provider != NULL && !path->with_provider) || 
     702      (!null_as_universal && product == NULL && provider != NULL) ) { 
    697703  roar_err_set(ROAR_ERROR_INVAL); 
    698704  return NULL; 
Note: See TracChangeset for help on using the changeset viewer.