From 9efdfb1a29b4e5716c46e1f53acb1ebc605b952b Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 4 Feb 2016 15:11:15 +1100 Subject: [PATCH] amcvideodec: pass the correct time value to wait_for_sync When we are not waiting, we need to pass -1 to signal that we just want to check that the frame was/n't rendered. Avoids waiting for frames that will never be rendered. https://bugzilla.gnome.org/show_bug.cgi?id=761014 --- sys/androidmedia/gstamcvideodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c index 4fe216a169..9d6c6f70a8 100644 --- a/sys/androidmedia/gstamcvideodec.c +++ b/sys/androidmedia/gstamcvideodec.c @@ -1101,7 +1101,7 @@ _amc_gl_iterate_queue_unlocked (GstGLSyncMeta * sync_meta, gboolean wait) /* Frames are currently pushed in order and waits need to be performed * in the same order */ - end_time = 30 * G_TIME_SPAN_MILLISECOND + tmp->released_ts; + end_time = wait ? 30 * G_TIME_SPAN_MILLISECOND + tmp->released_ts : -1; if (!_amc_gl_possibly_wait_for_gl_sync (tmp, end_time)) ret = FALSE;