path: root/gst/vaapi/gstvaapidecode.h
diff options
authorGwenole Beauchesne <>2012-09-11 15:54:20 +0200
committerGwenole Beauchesne <>2012-09-11 17:08:47 +0200
commit9afe700005ff47a6368734814fd58bbfaed62f04 (patch)
treef77330871b31385f9634e25b24d732b16f52ed78 /gst/vaapi/gstvaapidecode.h
parent6c19849cd2d273fdc67b6e8f6befd17e1fbb68fc (diff)
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.
Diffstat (limited to 'gst/vaapi/gstvaapidecode.h')
1 files changed, 2 insertions, 0 deletions
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;