From 1820ca89cef323c519d105344cd66605e8a797e5 Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Mon, 13 Nov 2023 09:57:01 +0300 Subject: [PATCH 1/3] Print error definiton for av_read_frame error --- src/main/java/io/antmedia/streamsource/StreamFetcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/antmedia/streamsource/StreamFetcher.java b/src/main/java/io/antmedia/streamsource/StreamFetcher.java index ad30dd67c..0bbbe958b 100644 --- a/src/main/java/io/antmedia/streamsource/StreamFetcher.java +++ b/src/main/java/io/antmedia/streamsource/StreamFetcher.java @@ -279,7 +279,7 @@ else if(AntMediaApplicationAdapter.VOD.equals(streamType) && readResult != AVERR * don't break the loop immediately. Instead jump to next frame. * Otherwise same VOD will be streamed from the beginning of the file again. */ - logger.warn("Frame can't be read for VOD {}", streamUrl); + logger.warn("Frame can't be read for VOD {} error is {}", streamUrl, Muxer.getErrorDefinition(readResult)); unReferencePacket(pkt); } else { From 880534dda586e341b639b81a1e7716d5678928bf Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Mon, 13 Nov 2023 11:20:06 +0300 Subject: [PATCH 2/3] Refactor frame can't read error --- src/main/java/io/antmedia/streamsource/StreamFetcher.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/antmedia/streamsource/StreamFetcher.java b/src/main/java/io/antmedia/streamsource/StreamFetcher.java index 0bbbe958b..bb4d7cbff 100644 --- a/src/main/java/io/antmedia/streamsource/StreamFetcher.java +++ b/src/main/java/io/antmedia/streamsource/StreamFetcher.java @@ -279,7 +279,8 @@ else if(AntMediaApplicationAdapter.VOD.equals(streamType) && readResult != AVERR * don't break the loop immediately. Instead jump to next frame. * Otherwise same VOD will be streamed from the beginning of the file again. */ - logger.warn("Frame can't be read for VOD {} error is {}", streamUrl, Muxer.getErrorDefinition(readResult)); + String errorDefinition = Muxer.getErrorDefinition(readResult); + logger.warn("Frame can't be read for VOD {} error is {}", streamUrl, errorDefinition); unReferencePacket(pkt); } else { From 4011bf9eabc2554e7732dfe3b4ad79540393b80d Mon Sep 17 00:00:00 2001 From: Mustafa BOLEKEN Date: Mon, 13 Nov 2023 12:00:37 +0300 Subject: [PATCH 3/3] Trigger CI/CD pipeline