From 29991c984a95f08c4ae18a7735cd8dcae726c5a5 Mon Sep 17 00:00:00 2001 From: Olivier Crete Date: Thu, 3 Apr 2008 16:54:31 +0000 Subject: [MOVED FROM GST-P-FARSIGHT] We retimestamp to the running time, starting the segments from 0 should therefore work 20080403165431-3e2dc-d981ac2f9ea7fd3c8d2be4d22f1817cf78c614e4.gz --- gst/liveadder/liveadder.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gst/liveadder') diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index 8546b565..72d1a38b 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -1118,14 +1118,10 @@ gst_live_adder_loop (gpointer data) if (adder->segment_pending) { /* - * We should probably loop through all of the sinks that have a segment - * and take the min of the starts and the max of the stops - * and convert them to running times and use these as start/stop. - * And so something smart about the positions with seeks that I dont - * understand yet. + * We set the start at 0, because we re-timestamps to the running time */ newseg_event = gst_event_new_new_segment_full (FALSE, 1.0, 1.0, - GST_FORMAT_TIME, GST_BUFFER_TIMESTAMP (buffer), -1, 0); + GST_FORMAT_TIME, 0, -1, 0); adder->segment_pending = FALSE; } -- cgit v1.2.1