asfdemux: Use presentation timestamp when searching in the index.

We need to take the preroll into account... else we end up too early.
This commit is contained in:
Edward Hervey 2009-06-26 20:44:09 +02:00
parent 342a3821de
commit 3c683ead7b

View file

@ -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 */