Ignore:
Timestamp:
10/15/13 13:33:26 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Updated checks on commandlion parameters (Closes: DEB#716264, DEB#716251, DEB#716245, DEB#716240)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarinterconnect.c

    r5823 r5945  
    280280 
    281281  if ( strcmp(k, "--server") == 0 ) { 
     282   ROAR_CKHAVEARGS(1); 
    282283   server = argv[++i]; 
    283284  } else if ( strcmp(k, "--remote") == 0 ) { 
     285   ROAR_CKHAVEARGS(1); 
    284286   remote = argv[++i]; 
    285287  } else if ( strcmp(k, "--type") == 0 ) { 
     288   ROAR_CKHAVEARGS(1); 
    286289   type = parse_type(argv[++i]); 
    287290  } else if ( strcmp(k, "--rate") == 0 || strcmp(k, "-R") == 0 ) { 
     291   ROAR_CKHAVEARGS(1); 
    288292   info.rate = roar_str2rate(argv[++i]); 
    289293  } else if ( strcmp(k, "--bits") == 0 || strcmp(k, "-B") == 0 ) { 
     294   ROAR_CKHAVEARGS(1); 
    290295   info.bits = roar_str2bits(argv[++i]); 
    291296  } else if ( strcmp(k, "--channels") == 0 || strcmp(k, "--chans") == 0 || strcmp(k, "-C") == 0 ) { 
     297   ROAR_CKHAVEARGS(1); 
    292298   info.channels = roar_str2channels(argv[++i]); 
    293299  } else if ( strcmp(k, "--codec") == 0 || strcmp(k, "-E") == 0 ) { 
     300   ROAR_CKHAVEARGS(1); 
    294301   info.codec = roar_str2codec(argv[++i]); 
    295302  } else if ( !strcmp(k, "--aiprofile") ) { 
     303   ROAR_CKHAVEARGS(1); 
    296304   if ( roar_profile2info(&info, argv[++i]) == -1 ) { 
    297305    fprintf(stderr, "Error: Can not load audio profile: %s: %s\n", argv[i], roar_error2str(roar_error)); 
Note: See TracChangeset for help on using the changeset viewer.