for (i = 0; i < stream_pos->packet_index->len; i++) {
index = &g_array_index(stream_pos->packet_index,
struct packet_index, i);
- if (index->timestamp_begin >= timestamp ||
- index->timestamp_end <= timestamp)
+ if (index->timestamp_end <= timestamp)
continue;
stream_pos->packet_seek(&stream_pos->parent, i, SEEK_SET);
if (ret)
goto error;
}
- case BT_SEEK_BEGIN:
- /* fall-through to seek time of 0 */
case BT_SEEK_TIME:
tc = iter->ctx->tc;