vtdec: error on returning from iOS background
Submitted by Ilya Konstantinov
Link to original bug (#752883)
Description
Upon returning from iOS background during a running "vtdec" pipeline, we get:
GST_VIDEO_DECODER_ERROR (vtdec, 1, STREAM, DECODE, (NULL),
("VTDecompressionSessionDecodeFrame returned %d", (int) status), ret);
where status == kVTInvalidSessionErr == -12903.
This produces a pipeline error and causes the source to stop. This is highly undesirable everywhere, and in particular in an RTC app where stopping the source task causes data loss.
There's a similar Chromium bug. We can see what they did.
https://code.google.com/p/chromium/issues/detail?id=477895