android: glimagesink/amcvideodec unable to retain and save last-sample
@drakkan
Submitted by Nicola Link to original bug (#788116)
Description
I have a pipeline like this:
decoder ! glupload ! glocolorconvert ! glimagesink
to take a snapshot I get the last-sample from glimagesink and then save it as jpeg with a pipeline like this:
appsrc ! gldownload ! videoconvert ! jpegenc ! filesink
the snapshot can be generated even after the decoding pipeline is finalized, this should be ok since last-sample returns a reference to the sample and an user can keep this reference until needed
this works fine with a sw decoder such as avdec_h264 but if I use an hw decoder such as amcvideodec and you try to generate a snapshot after the decoding pipeline is setted to NULL then the snapshot pipeline will hang after changing state from NULL to READY,
probably after the pipeline is finalized gldownload cannot get a context or access to the glmemory.
This seems a bug ot at least should be documented.
Version: 1.x