From d43f3dc50abb976b08dbbbb074f6897cc1abfeff Mon Sep 17 00:00:00 2001 From: Wind Yuan Date: Thu, 15 Mar 2012 04:58:04 -0400 Subject: 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 --- gst/vaapi/gstvaapidecode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gst/vaapi/gstvaapidecode.h') 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; }; -- cgit v1.2.3