diff options
author | 2001-04-08 23:42:25 +0000 | |
---|---|---|
committer | 2001-04-08 23:42:25 +0000 | |
commit | 4db472f1453b512b5e5dd1a9b91d6f2839a9bf62 (patch) | |
tree | 54f02ee4e76da539f5cc787b127ac671350a0a06 /codec-cfg.c | |
parent | 034641a6b6c5d92cf3c9cb924ee7a8e302bdd9a9 (diff) |
status added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@317 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.c')
-rw-r--r-- | codec-cfg.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/codec-cfg.c b/codec-cfg.c index 88c5cd5351..3911df6b92 100644 --- a/codec-cfg.c +++ b/codec-cfg.c @@ -445,6 +445,21 @@ codecs_t *parse_codec_cfg(char *cfgfile) if (get_token() < 0) goto parse_error_out; //printf(" %s\n", token); + } else if (!strcmp(token, "status")) { + if (!(state & GOT_NAME)) + goto parse_error_out; + if (get_token() < 0) + goto parse_error_out; + if (!strcasecmp(token, "rulz")) + codec->status = CODECS_STATUS_WORKING; + else if (!strcasecmp(token, "suxx")) + codec->status = CODECS_STATUS_NOT_WORKING; + else if (!strcasecmp(token, "checkthiz")) + codec->status = CODECS_STATUS_UNTESTED; + else if (!strcasecmp(token, "notsogood")) + codec->status = CODECS_STATUS_PROBLEMS; + else + goto parse_error_out; } else goto parse_error_out; } |