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)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 14 Aug 2019 16:37:19 +0000 (16:37 +0000)
commit9b9e39be248389370e80b429da5a528418733483
treec37ae4c4c08c689792f42e06b5b51aae44bb59a2
parent52f736c233d0c0c302d14512dd4fc665329f66cc
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