Lines Matching defs:violation
64 static FLAC__bool parse_vorbis_comment_field(const char *field_ref, char **field, char **name, char **value, unsigned *length, const char **violation)
80 *violation = violations[1];
88 *violation = violations[0];
101 /* slight modification: no 'filename' arg, and errors are passed back in 'violation' instead of printed to stderr */
102 static FLAC__bool set_vc_field(FLAC__StreamMetadata *block, const Argument_VcField *field, FLAC__bool *needs_write, FLAC__bool raw, const char **violation)
118 *violation = "can't open file for tag value";
122 *violation = "file for tag value is too large";
132 *violation = "error while reading file for tag value";
138 *violation = "file for tag value has embedded NULs";
151 *violation = "error converting file contents to UTF-8 for tag value";
158 *violation = "file for tag value is not valid UTF-8";
163 *violation = "memory allocation failure";
180 *violation = "error converting comment to UTF-8";
191 *violation = "tag value for is not valid UTF-8";
198 *violation = "memory allocation failure";
223 FLAC__bool flac__vorbiscomment_add(FLAC__StreamMetadata *block, const char *comment, FLAC__bool value_from_file, FLAC__bool raw, const char **violation)
235 if(!parse_vorbis_comment_field(comment, &(parsed.field), &(parsed.field_name), &(parsed.field_value), &(parsed.field_value_length), violation)) {
240 if(!set_vc_field(block, &parsed, &dummy, raw, violation)) {