gstreamer: Stop outputting frames if pushing one has caused an error

This commit is contained in:
Sebastian Dröge 2023-01-11 15:22:24 +02:00 committed by Hassene Tmar
parent 5f03d9c4d1
commit 040c92d8b0

View file

@ -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;
}