From 9afe700005ff47a6368734814fd58bbfaed62f04 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 11 Sep 2012 15:54:20 +0200 Subject: vaapidecode: improve "no free surface" conditions. Previously, vaapidecode would wait up to one second until a free surface is available, or it aborts decoding. Now, vaapidecode waits until the last decoded surface was to be presented, plus one second. Besides, end times are now expressed relative to the monotonic clock. --- gst/vaapi/gstvaapidecode.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gst/vaapi/gstvaapidecode.h') diff --git a/gst/vaapi/gstvaapidecode.h b/gst/vaapi/gstvaapidecode.h index 408ee08c..68799df5 100644 --- a/gst/vaapi/gstvaapidecode.h +++ b/gst/vaapi/gstvaapidecode.h @@ -72,6 +72,8 @@ struct _GstVaapiDecode { GstCaps *decoder_caps; GstCaps *allowed_caps; GstEvent *delayed_new_seg; + gint64 render_time_base; + GstClockTime last_buffer_time; unsigned int is_ready : 1; }; -- cgit v1.2.3