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:
Sebastian Dröge 2012-09-06 17:07:12 +02:00
parent 525ecbb76a
commit b63c58e850

View file

@ -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;