keep the lock until we replace last_buffer
keep the lock until we replace last_buffer

sledges/gst-droid,sailfishos/gst-droid,mlehtima/gst-droid,mlehtima/gst-droid,sledges/gst-droid,sledges/gst-droid,foolab/gst-droid,foolab/gst-droid