decode: delay NEWSEGMENT event if vaapidecode element was not linked.
authorWind Yuan <feng.yuan@intel.com>
Thu, 15 Mar 2012 08:58:04 +0000 (04:58 -0400)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 2 Apr 2012 11:40:31 +0000 (13:40 +0200)
commit4429e10ef39eb1ebb05710e094b87b36fdea5a01
tree464ad13de87d8d4a05e35990e89ddea3d44808f2
parent92a29c44bb83f014e3c0ff44b623d94637829e91
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>
gst/vaapi/gstvaapidecode.c
gst/vaapi/gstvaapidecode.h