Display and control your Android device
Handle EAGAIN on send_packet in decoder
Romain Vimont8b90dc61b956
diff --git a/app/src/decoder.c b/app/src/decoder.cindex 34f2a15f..476158d9 100644--- a/app/src/decoder.c+++ b/app/src/decoder.c@@ -99,8 +99,8 @@ decoder_push(struct decoder *decoder, const AVPacket *packet) {return true;}- int ret;- if ((ret = avcodec_send_packet(decoder->codec_ctx, packet)) < 0) {+ int ret = avcodec_send_packet(decoder->codec_ctx, packet);+ if (ret < 0 && ret != AVERROR(EAGAIN)) {LOGE("Could not send video packet: %d", ret);return false;}