diff --git a/common/src/main/java/ctbrec/recorder/download/dash/DashDownload.java b/common/src/main/java/ctbrec/recorder/download/dash/DashDownload.java index fc1530ee..b9686286 100644 --- a/common/src/main/java/ctbrec/recorder/download/dash/DashDownload.java +++ b/common/src/main/java/ctbrec/recorder/download/dash/DashDownload.java @@ -30,9 +30,9 @@ import org.slf4j.LoggerFactory; import ctbrec.Config; import ctbrec.Model; import ctbrec.Recording; +import ctbrec.Recording.State; import ctbrec.io.HttpClient; import ctbrec.recorder.download.Download; -import ctbrec.recorder.download.dash.FfmpegMuxer.ProcessExitedUncleanException; import ctbrec.recorder.download.dash.SegmentTimelineType.S; import okhttp3.Request; import okhttp3.Response; @@ -340,8 +340,9 @@ public class DashDownload implements Download { new FfmpegMuxer(dir, file); targetFile = file; recording.setPath(path.substring(0, path.length() - 5)); - } catch (ProcessExitedUncleanException | IOException e) { + } catch (IOException e) { LOG.error("Error while merging dash segments", e); + recording.setStatus(State.FAILED); } }