Lines Matching refs:p_current
73 block_t *p_current; /* Current block */ member
94 sys->p_first != sys->p_current) in AStreamRefillBlock()
105 sys->p_current == sys->p_first && in AStreamRefillBlock()
106 sys->p_current->p_next) /* At least 2 packets */ in AStreamRefillBlock()
137 if (sys->p_current == NULL) in AStreamRefillBlock()
138 sys->p_current = b; in AStreamRefillBlock()
206 sys->p_current = sys->p_first; in AStreamPrebufferBlock()
223 sys->p_current = NULL; in AStreamControlReset()
250 sys->p_current = b; in AStreamSeekBlock()
316 sys->p_current = NULL; in AStreamSeekBlock()
331 while (sys->p_current && in AStreamSeekBlock()
332 sys->i_pos + sys->p_current->i_buffer - sys->i_offset <= i_pos) in AStreamSeekBlock()
334 sys->i_pos += sys->p_current->i_buffer - sys->i_offset; in AStreamSeekBlock()
335 sys->p_current = sys->p_current->p_next; in AStreamSeekBlock()
338 if (!sys->p_current && AStreamRefillBlock(s)) in AStreamSeekBlock()
360 if (sys->p_current == NULL) in AStreamReadBlock()
363 ssize_t i_current = sys->p_current->i_buffer - sys->i_offset; in AStreamReadBlock()
367 memcpy(buf, &sys->p_current->p_buffer[sys->i_offset], i_copy); in AStreamReadBlock()
370 if (sys->i_offset >= sys->p_current->i_buffer) in AStreamReadBlock()
373 sys->p_current = sys->p_current->p_next; in AStreamReadBlock()
376 if (sys->p_current == NULL) in AStreamReadBlock()
387 if( i_copy == 0 && sys->p_current ) in AStreamReadBlock()
459 sys->p_current = NULL; in Open()