Skip to content

Commit

Permalink
When encountering errors, keep going.
Browse files Browse the repository at this point in the history
  • Loading branch information
katajakasa committed Nov 12, 2023
1 parent fdb9dc6 commit 50866a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/internal/audio/kitaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ static Kit_DecoderInputResult dec_input_audio_cb(const Kit_Decoder *decoder, con
return KIT_DEC_INPUT_EOF;
case AVERROR(EAGAIN):
return KIT_DEC_INPUT_RETRY;
default:
return KIT_DEC_INPUT_RETRY;
default: // Skip errors and hope for the best.
return KIT_DEC_INPUT_OK;
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/internal/video/kitvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ static Kit_DecoderInputResult dec_input_video_cb(const Kit_Decoder *decoder, con
return KIT_DEC_INPUT_EOF;
case AVERROR(EAGAIN):
return KIT_DEC_INPUT_RETRY;
default:
return KIT_DEC_INPUT_RETRY;
default: // Skip errors and hope for the best.
return KIT_DEC_INPUT_OK;
}
}

Expand Down

0 comments on commit 50866a8

Please sign in to comment.