[MOVED FROM GST-P-FARSIGHT] We retimestamp to the running time, starting the segments from 0 should therefore work

20080403165431-3e2dc-d981ac2f9ea7fd3c8d2be4d22f1817cf78c614e4.gz
This commit is contained in:
Olivier Crete 2008-04-03 16:54:31 +00:00 committed by Edward Hervey
parent 0e625b097b
commit 29991c984a

View file

@ -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;
}