From: Nicolas Dufresne Date: Wed, 5 Aug 2015 18:52:12 +0000 (-0400) Subject: pcapparse: Segment should start at base ts X-Git-Tag: 1.6.0~232 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3757e507f37ce99cf67bfb746516bd67325182a2;p=platform%2Fupstream%2Fgst-plugins-bad.git pcapparse: Segment should start at base ts Instead we would use cur_ts which matches the last TS store in the buffer list. https://bugzilla.gnome.org/show_bug.cgi?id=753037 --- diff --git a/gst/pcapparse/gstpcapparse.c b/gst/pcapparse/gstpcapparse.c index fae2286..11a443e 100644 --- a/gst/pcapparse/gstpcapparse.c +++ b/gst/pcapparse/gstpcapparse.c @@ -590,7 +590,7 @@ gst_pcap_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) if (self->caps) gst_pad_set_caps (self->src_pad, self->caps); gst_segment_init (&segment, GST_FORMAT_TIME); - segment.start = self->cur_ts; + segment.start = self->base_ts; gst_pad_push_event (self->src_pad, gst_event_new_segment (&segment)); self->newsegment_sent = TRUE; }