1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-25 11:43:17 +01:00

add fix for bug

This commit is contained in:
Mikael Finstad 2023-03-28 15:38:16 +09:00
parent b26119b06c
commit b80cf667a9
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -2000,6 +2000,10 @@ const App = memo(() => {
const MEDIA_ERR_SRC_NOT_SUPPORTED = 4; // Test: issue-668-3.20.1.m2ts - NOTE: DEMUXER_ERROR_COULD_NOT_OPEN and DEMUXER_ERROR_NO_SUPPORTED_STREAMS is also 4
if (!([MEDIA_ERR_SRC_NOT_SUPPORTED, PIPELINE_ERROR_DECODE].includes(error.code) && !usingPreviewFile && filePath)) return;
// this error can happen half way into playback if the file has some corruption
// example: "DEMUXER_ERROR_COULD_NOT_PARSE: FFmpegDemuxer: PTS is not defined 4"
if (error.code === MEDIA_ERR_SRC_NOT_SUPPORTED && error.message?.startsWith('DEMUXER_ERROR_COULD_NOT_PARSE')) return;
if (workingRef.current) return;
try {
setWorking(i18n.t('Converting to supported format'));