#endif
default:
- metadata_editor_error("Wrong file type");
+ metadata_editor_error("Not supported file type [%d]", media_type);
return METADATA_EDITOR_ERROR_NOT_SUPPORTED;
}
} catch (const std::bad_alloc &ex) {
case METADATA_EDITOR_ATTR_PICTURE_NUM: return __ID3_getNumberOfPictures(metadata, tag2, value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __ID3_getLyricsFrame(metadata, tag2, value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __MP4_getStringItem(metadata, "\xA9""lyr", value);
case METADATA_EDITOR_ATTR_PICTURE_NUM: return __MP4_getNumberOfPictures(metadata, value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __xiph_getFieldValue(metadata, xtag, "LYRICS", value);
case METADATA_EDITOR_ATTR_PICTURE_NUM: return __FLAC_getNumberOfPictures(metadata, value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_CONDUCTOR: return __xiph_getFieldValue(metadata, xtag, "CONDUCTOR", value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __xiph_getFieldValue(metadata, xtag, "LYRICS", value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_CONDUCTOR: return __xiph_getFieldValue(metadata, xtag, "CONDUCTOR", value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __xiph_getFieldValue(metadata, xtag, "LYRICS", value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_PICTURE_NUM: return __ID3_getNumberOfPictures(metadata, tag2, value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __ID3_getLyricsFrame(metadata, tag2, value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
#endif
default:
- metadata_editor_error("Wrong file type [%d]", _metadata->filetype);
+ metadata_editor_error("Invalid file type [%d]", _metadata->filetype);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_COMMENT: return __ID3_setTwixCommentFrame(metadata, tag1, tag2, value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __ID3_setLyricsFrame(metadata, tag2, value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_CONDUCTOR: return __MP4_updateStringItem(metadata, "cond", value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __MP4_updateStringItem(metadata, "\xA9""lyr", value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_CONDUCTOR: return __xiph_updateFieldValue(metadata, xtag, "CONDUCTOR", value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __xiph_updateFieldValue(metadata, xtag, "LYRICS", value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_CONDUCTOR: return __xiph_updateFieldValue(metadata, xtag, "CONDUCTOR", value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __xiph_updateFieldValue(metadata, xtag, "LYRICS", value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_CONDUCTOR: return __xiph_updateFieldValue(metadata, xtag, "CONDUCTOR", value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __xiph_updateFieldValue(metadata, xtag, "LYRICS", value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
case METADATA_EDITOR_ATTR_COMMENT: return __ID3_setTwixCommentFrame(metadata, NULL, tag2, value);
case METADATA_EDITOR_ATTR_UNSYNCLYRICS: return __ID3_setLyricsFrame(metadata, tag2, value);
default:
+ metadata_editor_error("Invalid attribute [%d]", attribute);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
#endif
default:
- metadata_editor_error("Wrong file type");
+ metadata_editor_error("Invalid file type [%d]", _metadata->filetype);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
}
default:
- metadata_editor_error("Wrong file type");
+ metadata_editor_error("Invalid file type [%d]", _metadata->filetype);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
return __get_wav_picture(_metadata, index, picture, size, mime_type);
#endif
default:
- metadata_editor_error("Wrong file type");
+ metadata_editor_error("Invalid file type [%d]", _metadata->filetype);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}
break;
#endif
default: {
- metadata_editor_error("Wrong file type");
- ret = METADATA_EDITOR_ERROR_NOT_SUPPORTED;
+ metadata_editor_error("Invalid file type [%d]", _metadata->filetype);
+ ret = METADATA_EDITOR_ERROR_INVALID_PARAMETER;
break;
}
}
return __remove_wav_picture(_metadata, index);
#endif
default:
- metadata_editor_error("Wrong file type");
+ metadata_editor_error("Invalid file type [%d]", _metadata->filetype);
return METADATA_EDITOR_ERROR_INVALID_PARAMETER;
}
}