diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-07-29 23:12:30 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-07-29 23:12:30 +0000 |
commit | ec8c6c86e661d62108f19f17a069c97ba2be6cfe (patch) | |
tree | 3d1538685733dd1758125351f9c25e5b94ed6cb3 /codec-cfg.c | |
parent | 6cfa4827041aeede86b74f27ba74c2ba51cd228b (diff) | |
download | mpv-ec8c6c86e661d62108f19f17a069c97ba2be6cfe.tar.bz2 mpv-ec8c6c86e661d62108f19f17a069c97ba2be6cfe.tar.xz |
spelling/grammar fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10502 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'codec-cfg.c')
-rw-r--r-- | codec-cfg.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/codec-cfg.c b/codec-cfg.c index 6ad5183406..d2688b29eb 100644 --- a/codec-cfg.c +++ b/codec-cfg.c @@ -97,20 +97,20 @@ static int add_to_format(char *s, char *alias,unsigned int *fourcc, unsigned int for (i = 0; i < CODECS_MAX_FOURCC && fourcc[i] != 0xffffffff; i++) /* NOTHING */; if (i == CODECS_MAX_FOURCC) { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"too many fourcc/format..."); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"too many fourccs/formats..."); return 0; } fourcc[i]=strtoul(s,&endptr,0); if (*endptr != '\0') { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"parse error (format ID not number?)"); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"parse error (format ID not a number?)"); return 0; } if(alias){ fourccmap[i]=strtoul(alias,&endptr,0); if (*endptr != '\0') { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"parse error (format ID alias not number?)"); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"parse error (format ID alias not a number?)"); return 0; } } else @@ -361,7 +361,7 @@ static int add_comment(char *s, char **d) (*d)[pos++] = '\n'; } if (!(*d = (char *) realloc(*d, pos + strlen(s) + 1))) { - mp_msg(MSGT_CODECCFG,MSGL_FATAL,"can't allocate mem for comment. "); + mp_msg(MSGT_CODECCFG,MSGL_FATAL,"Can't allocate memory for comment. "); return 0; } strcpy(*d + pos, s); @@ -501,12 +501,12 @@ int parse_codec_cfg(char *cfgfile) mp_msg(MSGT_CODECCFG,MSGL_INFO,"Reading %s: ", cfgfile); if ((fp = fopen(cfgfile, "r")) == NULL) { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"can't open '%s': %s\n", cfgfile, strerror(errno)); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"Can't open '%s': %s\n", cfgfile, strerror(errno)); return 0; } if ((line = (char *) malloc(MAX_LINE_LEN + 1)) == NULL) { - mp_msg(MSGT_CODECCFG,MSGL_FATAL,"can't get memory for 'line': %s\n", strerror(errno)); + mp_msg(MSGT_CODECCFG,MSGL_FATAL,"Can't get memory for 'line': %s\n", strerror(errno)); return 0; } read_nextline = 1; @@ -564,7 +564,7 @@ int parse_codec_cfg(char *cfgfile) } if (!(*codecsp = (codecs_t *) realloc(*codecsp, sizeof(codecs_t) * (*nr_codecsp + 2)))) { - mp_msg(MSGT_CODECCFG,MSGL_FATAL,"can't realloc '*codecsp': %s\n", strerror(errno)); + mp_msg(MSGT_CODECCFG,MSGL_FATAL,"Can't realloc '*codecsp': %s\n", strerror(errno)); goto err_out; } codec=*codecsp + *nr_codecsp; @@ -579,19 +579,19 @@ int parse_codec_cfg(char *cfgfile) for (i = 0; i < *nr_codecsp - 1; i++) { if(( (*codecsp)[i].name!=NULL) && (!strcmp(token[0], (*codecsp)[i].name)) ) { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"codec name '%s' isn't unique", token[0]); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"Codec name '%s' isn't unique.", token[0]); goto err_out_print_linenum; } } if (!(codec->name = strdup(token[0]))) { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"can't strdup -> 'name': %s\n", strerror(errno)); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"Can't strdup -> 'name': %s\n", strerror(errno)); goto err_out; } } else if (!strcmp(token[0], "info")) { if (codec->info || get_token(1, 1) < 0) goto err_out_parse_error; if (!(codec->info = strdup(token[0]))) { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"can't strdup -> 'info': %s\n", strerror(errno)); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"Can't strdup -> 'info': %s\n", strerror(errno)); goto err_out; } } else if (!strcmp(token[0], "comment")) { @@ -615,14 +615,14 @@ int parse_codec_cfg(char *cfgfile) if (get_token(1, 1) < 0) goto err_out_parse_error; if (!(codec->drv = strdup(token[0]))) { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"can't strdup -> 'driver': %s\n", strerror(errno)); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"Can't strdup -> 'driver': %s\n", strerror(errno)); goto err_out; } } else if (!strcmp(token[0], "dll")) { if (get_token(1, 1) < 0) goto err_out_parse_error; if (!(codec->dll = strdup(token[0]))) { - mp_msg(MSGT_CODECCFG,MSGL_ERR,"can't strdup -> 'dll': %s\n", strerror(errno)); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"Can't strdup -> 'dll': %s\n", strerror(errno)); goto err_out; } } else if (!strcmp(token[0], "guid")) { @@ -718,10 +718,10 @@ err_out: fclose(fp); return 0; err_out_not_valid: - mp_msg(MSGT_CODECCFG,MSGL_ERR,"codec is not defined correctly"); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"Codec is not defined correctly."); goto err_out_print_linenum; err_out_release_num: - mp_msg(MSGT_CODECCFG,MSGL_ERR,"this codecs.conf is too old, incompatible with this mplayer release!"); + mp_msg(MSGT_CODECCFG,MSGL_ERR,"This codecs.conf is too old and incompatible with this MPlayer release!"); goto err_out_print_linenum; } |