continue;
stream_pos->cur_index = i;
- stream_pos->move_pos_slow(stream_pos, index->offset, SEEK_SET);
+ stream_pos->packet_seek(&stream_pos->parent,
+ index->offset, SEEK_SET);
while (cfs->parent.timestamp < timestamp) {
ret = stream_read_event(cfs);
if (ret < 0)
saved_pos->cur_index);
stream_pos->cur_index = saved_pos->cur_index;
- stream_pos->move_pos_slow(stream_pos, index->offset,
- SEEK_SET);
+ stream_pos->packet_seek(&stream_pos->parent,
+ index->offset, SEEK_SET);
/*
* the timestamp needs to be restored after
- * move_pos_slow, because this function resets
+ * packet_seek, because this function resets
* the timestamp to the beginning of the packet
*/
stream->timestamp = saved_pos->current_timestamp;
*/
break;
case BT_SEEK_BEGIN:
- file_stream->pos.move_pos_slow(&file_stream->pos, 0, SEEK_SET);
+ file_stream->pos.packet_seek(&file_stream->pos.parent,
+ 0, SEEK_SET);
ret = stream_read_event(file_stream);
break;
case BT_SEEK_TIME: