oggdemux: fix chaining causing running time to restart from 0
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 5 Feb 2016 14:14:37 +0000 (14:14 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 4 Mar 2016 12:18:53 +0000 (12:18 +0000)
This fixes:
gst-play-1.0 http://relay-nyc.gameowls.com:8000/chiptune.ogg

https://bugzilla.gnome.org/show_bug.cgi?id=758282

ext/ogg/gstoggdemux.c

index 05cd759770d31e332107ce4a4f4ebf3348c945ff..bd129ab0724c86fc5b6a179addf9ab641244b09e 100644 (file)
@@ -1204,7 +1204,7 @@ gst_ogg_pad_submit_packet (GstOggPad * pad, ogg_packet * packet)
           segment.position = chain->segment_start;
           segment.stop = chain->segment_stop;
           segment.time = chain->begin_time;
-          segment.base = ogg->segment.base;
+          segment.base = ogg->segment.base + segment.time;
           event = gst_event_new_segment (&segment);
         }
       }