amc: Fix crash when a sync_meta survives its sink
authorXavier Claessens <xavier.claessens@collabora.com>
Wed, 14 Aug 2019 15:21:30 +0000 (11:21 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 14 Aug 2019 21:39:34 +0000 (22:39 +0100)
commit0c1639546b3d04a1a2a8ade00c1ed3b4c41c0623
tree53281b692591dbf632a1e50a0a19d18332afbe1f
parent58ea39c0be1feaf2734b95e52d8b5f2d4b4fc4b3
amc: Fix crash when a sync_meta survives its sink

_amc_gl_free() could be called after the GstAmcVideoDec has been
finalized, in the case downstream still has a ref to a buffer.
sys/androidmedia/gstamcvideodec.c