diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index a9ec1052b8..445cc24b0f 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -381,7 +381,7 @@ gst_asf_demux_seek_index_lookup (GstASFDemux * demux, guint * packet, if (demux->sidx_num_entries == 0 || demux->sidx_interval == 0) return FALSE; - idx = (guint) (seek_time / demux->sidx_interval); + idx = (guint) ((seek_time + demux->preroll) / demux->sidx_interval); /* FIXME: seek beyond end of file should result in immediate EOS from * streaming thread instead of a failed seek */