| 370 | } |
| 371 | |
| 372 | FFMS_API(int) FFMS_IndexBelongsToFile(FFMS_Index *Index, const char *SourceFile, FFMS_ErrorInfo *ErrorInfo) { |
| 373 | ClearErrorInfo(ErrorInfo); |
| 374 | try { |
| 375 | if (!Index->CompareFileSignature(SourceFile)) |
| 376 | throw FFMS_Exception(FFMS_ERROR_INDEX, FFMS_ERROR_FILE_MISMATCH, |
| 377 | "The index does not belong to the file"); |
| 378 | } catch (FFMS_Exception &e) { |
| 379 | return e.CopyOut(ErrorInfo); |
| 380 | } |
| 381 | return FFMS_ERROR_SUCCESS; |
| 382 | } |
| 383 | |
| 384 | FFMS_API(int) FFMS_WriteIndex(const char *IndexFile, FFMS_Index *Index, FFMS_ErrorInfo *ErrorInfo) { |
| 385 | ClearErrorInfo(ErrorInfo); |
no test coverage detected