pcapparse: Segment should start at base ts
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 5 Aug 2015 18:52:12 +0000 (14:52 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 5 Aug 2015 18:54:05 +0000 (14:54 -0400)
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

gst/pcapparse/gstpcapparse.c

index fae2286..11a443e 100644 (file)
@@ -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;
     }