glupload: always release the previous buffer
authorMatthew Waters <ystreet00@gmail.com>
Tue, 3 Jun 2014 03:59:51 +0000 (13:59 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:42 +0000 (19:31 +0000)
commit57a54e9de4762a53117414d657b16d0dcec4196c
treec161f8c88066a1cf5e14ece4937602aa1d6f983a
parent188ae1c3b04139ce223fdd5f7caaad4fe121ec9e
glupload: always release the previous buffer

Fixes the case where _perform_with_buffer() is called without
intervening calls to _release_buffer() as is the case on start up
with glimagesink.

Also release the buffer when reseting the upload.

https://bugzilla.gnome.org/show_bug.cgi?id=731107
gst-libs/gst/gl/gstglupload.c