The previous patch added a check for a substream header after gst_buffer_unmap(), which is incorrect.