| 100 | } |
| 101 | |
| 102 | FFMS_API(FFMS_VideoSource *) FFMS_CreateVideoSource(const char *SourceFile, int Track, FFMS_Index *Index, int Threads, int SeekMode, FFMS_ErrorInfo *ErrorInfo) { |
| 103 | try { |
| 104 | return new FFMS_VideoSource(SourceFile, *Index, Track, Threads, SeekMode); |
| 105 | } catch (FFMS_Exception &e) { |
| 106 | e.CopyOut(ErrorInfo); |
| 107 | return nullptr; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | FFMS_API(FFMS_AudioSource *) FFMS_CreateAudioSource(const char *SourceFile, int Track, FFMS_Index *Index, int DelayMode, FFMS_ErrorInfo *ErrorInfo) { |
| 112 | return FFMS_CreateAudioSource2(SourceFile, Track, Index, DelayMode, -1, 0, ErrorInfo); |
no test coverage detected