Skip to content

msdkenc: break out of flush frames loop on error

U. Artie Eoff requested to merge ullysses.a.eoff/gst-plugins-bad:859-oom into master

In general, we should assume any unhandled error is non-recoverable.

In the flush frames loop, some error states can cause us to never increment the task and therefore we get stuck in an infinite loop and generate GST_ELEMENT_ERROR over and over again. This eventually consumes all system memory and triggers OOM. Thus, assume the worst and break out of the loop upon the first "unhandled" error.

#859 (closed)

Closes #859 (closed)

Edited by U. Artie Eoff

Merge request reports