diff --git a/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c b/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c index a10e65e07a..b0f85af9b9 100644 --- a/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c +++ b/subprojects/gst-plugins-bad/ext/svtav1/gstsvtav1enc.c @@ -683,7 +683,7 @@ gst_svtav1enc_dequeue_encoded_frames (GstSvtAv1Enc * svtav1enc, svtav1enc->frame_count++; } - } while (res == EB_ErrorNone && !encode_at_eos); + } while (res == EB_ErrorNone && !encode_at_eos && ret == GST_FLOW_OK); return ret; }