comparison codec-cfg.c @ 3667:ec943f8ec439

add support for priotity <int> in codecs.conf, higher numbers are better
author atmos4
date Sun, 23 Dec 2001 11:58:57 +0000
parents fb9fd7e2dd35
children 7fb817c9060b
comparison
equal deleted inserted replaced
3666:70c409621d92 3667:ec943f8ec439
575 } else if (!strcmp(token[0], "cpuflags")) { 575 } else if (!strcmp(token[0], "cpuflags")) {
576 if (get_token(1, 1) < 0) 576 if (get_token(1, 1) < 0)
577 goto err_out_parse_error; 577 goto err_out_parse_error;
578 if (!(codec->cpuflags = get_cpuflags(token[0]))) 578 if (!(codec->cpuflags = get_cpuflags(token[0])))
579 goto err_out_parse_error; 579 goto err_out_parse_error;
580 } else if (!strcasecmp(token[0], "priority")) {
581 if (get_token(1, 1) < 0)
582 goto err_out_parse_error;
583 //printf("\n\n!!!cfg-parse: priority %s (%d) found!!!\n\n", token[0], atoi(token[0])); // ::atmos
584 codec->priority = atoi(token[0]);
580 } else 585 } else
581 goto err_out_parse_error; 586 goto err_out_parse_error;
582 } 587 }
583 if (!validate_codec(codec, codec_type)) 588 if (!validate_codec(codec, codec_type))
584 goto err_out_not_valid; 589 goto err_out_not_valid;