mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue