summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapidecode.h
diff options
context:
space:
mode:
authorWind Yuan <feng.yuan@intel.com>2012-03-15 04:58:04 -0400
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-03-22 14:33:17 +0100
commitd43f3dc50abb976b08dbbbb074f6897cc1abfeff (patch)
treef3296b366bd498183b18d932cf21f0e56507fe5e /gst/vaapi/gstvaapidecode.h
parentbaa80d97530abc92e451c90da8bbd2e366ec338b (diff)
decode: delay NEWSEGMENT event if vaapidecode element was not linked.
Rationale: playbin2 links all elements at run-time. Once vaapidecode is created and a NEWSEGMENT event arrives, downstream element may not be ready yet. So, delay this event until next element is chained in, otherwise basesink could output "Received buffer without a new-segment. Assuming timestamps start from 0". Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'gst/vaapi/gstvaapidecode.h')
-rw-r--r--gst/vaapi/gstvaapidecode.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapidecode.h b/gst/vaapi/gstvaapidecode.h
index 6725bcbf..6a5792df 100644
--- a/gst/vaapi/gstvaapidecode.h
+++ b/gst/vaapi/gstvaapidecode.h
@@ -71,6 +71,7 @@ struct _GstVaapiDecode {
GCond *decoder_ready;
GstCaps *decoder_caps;
GstCaps *allowed_caps;
+ GstEvent *delayed_new_seg;
unsigned int use_ffmpeg : 1;
unsigned int is_ready : 1;
};