GNOME Bugzilla – Bug 792620
vaapi: don't reuse buffer pool in propose_allocation
Last modified: 2018-01-18 12:37:29 UTC
Don't reuse the buffer pool instantiated in propose_allocation() since it can break renegotiation
Created attachment 366971 [details] [review] plugins: use g_clear_object() to unref sinkpad_buffer_pool
Created attachment 366972 [details] [review] plugins: re-using buffer pool breaks renegotiation at propose_allocation() we should not reuse the proposed buffer, because it could break renegotiation.
Review of attachment 366972 [details] [review]: Looks good to me, I see it fails if it could not provide a pool, pool is optional there, but I guess its going to fail later anyway if that happens, is that correct ?
(In reply to Nicolas Dufresne (stormer) from comment #3) > Review of attachment 366972 [details] [review] [review]: > > Looks good to me, I see it fails if it could not provide a pool, pool is > optional there, but I guess its going to fail later anyway if that happens, > is that correct ? Yes. Even gst_vaapi_plugin_base_create_pool() will trigger an GST_ELEMENT_ERROR/GST_ERROR_ELEMENT if the pool can't be instantiated. The pool is mandatory for the encoders, postprocessor and sink.
Attachment 366971 [details] pushed as 9933dcb - plugins: use g_clear_object() to unref sinkpad_buffer_pool Attachment 366972 [details] pushed as 6efce29 - plugins: re-using buffer pool breaks renegotiation