The MediaCodec API is apparently not threadsafe between stop() and release()
So we don't call release() and just hope for the GC to release the codec in time.
This commit is contained in:
parent
525ecbb76a
commit
b63c58e850
@ -391,7 +391,13 @@ gst_amc_video_dec_close (GstVideoDecoder * decoder)
|
||||
GST_DEBUG_OBJECT (self, "Closing decoder");
|
||||
|
||||
if (self->codec) {
|
||||
/* FIXME: This crashes for some reason, looks like the
|
||||
* MediaCodec API is not threadsafe between stop() and
|
||||
* release()
|
||||
*/
|
||||
#if 0
|
||||
gst_amc_codec_release (self->codec);
|
||||
#endif
|
||||
gst_amc_codec_free (self->codec);
|
||||
}
|
||||
self->codec = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user