Otherwise stream offset and running time comparison will not be
correct, leading to segfaults after seeks
/* Link up */
result = GST_AGGREGATOR_CLASS (parent_class)->src_event (agg, event);
+ if (result)
+ audiomixer->base_time = agg->segment.start;
goto done;
}
break;
guint64 start_running_time_offset;
guint64 end_running_time_offset;
+ aggpad->segment.base = audiomixer->base_time;
start_running_time =
gst_segment_to_running_time (&aggpad->segment,
GST_FORMAT_TIME, start_time);
/* Last time we noticed a discont */
GstClockTime discont_time;
+ gint64 base_time;
/* Size in samples that is output per buffer */
guint blocksize;