GNOME Bugzilla – Bug 750669
vtenc: always enqueue frames, even on error
Last modified: 2015-06-10 20:23:34 UTC
Even when we fail to encode frame, we should still enqueue it so it could be passed into handle_frame (with output_buffer == NULL). Otherwise, we risk GstVideoEncoder's queue of frames growing unbounded.
Created attachment 304895 [details] [review] vtenc: always enqueue frames, even on error Note: We're slightly changing the renegotiation code to accommodate for frames without output buffers, but this commit takes no ownership over the way negotiation is being done.
Comment on attachment 304895 [details] [review] vtenc: always enqueue frames, even on error Does not apply against latest GIT master, not even with patch --merge :)
Created attachment 305000 [details] [review] vtenc: always enqueue frames, even on error Sorry for that. Actually it's a good thing, cause it brought to my attention that I forgot a dependent commit (which is squashed into this now). Basically, we need to get 'frame' (using sourceFrameRefCon) even if we have error status, since we need to submit the unencoded frame for completion. Admittedly now that bug 750671 has landed, there aren't many resources remaining to free...