Skip to content

Commit

Permalink
Merge pull request #5804 from ant-media/fix/issue-5618
Browse files Browse the repository at this point in the history
Print error definiton for av_read_frame error
  • Loading branch information
mekya authored Nov 13, 2023
2 parents 4983f31 + 4011bf9 commit fdb3b9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/io/antmedia/streamsource/StreamFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}", streamUrl);
String errorDefinition = Muxer.getErrorDefinition(readResult);
logger.warn("Frame can't be read for VOD {} error is {}", streamUrl, errorDefinition);
unReferencePacket(pkt);
}
else {
Expand Down

0 comments on commit fdb3b9d

Please sign in to comment.