summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-02-04 15:11:15 +1100
committerMatthew Waters <matthew@centricular.com>2016-02-04 15:46:22 +1100
commit9efdfb1a29b4e5716c46e1f53acb1ebc605b952b (patch)
tree0a958e66f44af3f00d65bbfdfc66618ef5879482
parent3c29dcaddb0996eac5389adeb9214e03e3593058 (diff)
downloadgstreamer-plugins-bad-9efdfb1a29b4e5716c46e1f53acb1ebc605b952b.tar.gz
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
-rw-r--r--sys/androidmedia/gstamcvideodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/androidmedia/gstamcvideodec.c b/sys/androidmedia/gstamcvideodec.c
index 4fe216a16..9d6c6f70a 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;