subparse : need_segment flag was set too early
Submitted by Mingke Wang
Created attachment 301118
set need_segment after sink pad received GST_EVENT_SEGMENT
subparse works in push mode, chain funciton will be called once up stream element finished the seeking and flushing. if set need_segment flag in src pad event handler, the segment event will be pushed earlier, result in the subtitle text will
be send out to down stream from the beginning. if the text sink (such as using appsink to catch text) don't compare the video timestamp with the received text timestamp, then the text and video will not sync.
Patch 301118, "set need_segment after sink pad received GST_EVENT_SEGMENT":