mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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:
parent
342a3821de
commit
3c683ead7b
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ gst_asf_demux_seek_index_lookup (GstASFDemux * demux, guint * packet,
|
||||||
if (demux->sidx_num_entries == 0 || demux->sidx_interval == 0)
|
if (demux->sidx_num_entries == 0 || demux->sidx_interval == 0)
|
||||||
return FALSE;
|
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
|
/* FIXME: seek beyond end of file should result in immediate EOS from
|
||||||
* streaming thread instead of a failed seek */
|
* streaming thread instead of a failed seek */
|
||||||
|
|
Loading…
Reference in a new issue