MCPcopy Create free account
hub / github.com/FFMS/ffms2 / FFMS_IndexBelongsToFile

Function FFMS_IndexBelongsToFile

src/core/ffms.cpp:372–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372FFMS_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
384FFMS_API(int) FFMS_WriteIndex(const char *IndexFile, FFMS_Index *Index, FFMS_ErrorInfo *ErrorInfo) {
385 ClearErrorInfo(ErrorInfo);

Callers 5

CreateIndexFunction · 0.85
CreateSourceFunction · 0.85
CreateFFIndexFunction · 0.85
CreateFFVideoSourceFunction · 0.85
CreateFFAudioSourceFunction · 0.85

Calls 4

ClearErrorInfoFunction · 0.85
FFMS_ExceptionClass · 0.85
CompareFileSignatureMethod · 0.80
CopyOutMethod · 0.80

Tested by

no test coverage detected