Fix decoder warning due to untracked pending buffer (and more)
This fixes the known warning issue by simply leaving buffer in the ready queue. A patch was added to remove deadcode, and another to prevent writing passed the lst src buffer (even though we haven't really hit that issue with GStreamer).
Also added a patch to lock the format after sequence init, and handling framebuffer register failure so that we don't spin.