| 1125 | } |
| 1126 | |
| 1127 | static struct segment *current_segment(struct playlist *pls) |
| 1128 | { |
| 1129 | int64_t n = pls->cur_seq_no - pls->start_seq_no; |
| 1130 | if (n >= pls->n_segments) |
| 1131 | return NULL; |
| 1132 | return pls->segments[n]; |
| 1133 | } |
| 1134 | |
| 1135 | static struct segment *next_segment(struct playlist *pls) |
| 1136 | { |
no outgoing calls
no test coverage detected