Beispiel #1
0
static int feed_back_bytes(mpg123_handle *fr, off_t bytes)
{
	if(bytes >=0)
	return bc_seekback(&fr->rdat.buffer, (ssize_t)bytes) >= 0 ? 0 : READER_ERROR;
	else
	return feed_skip_bytes(fr, -bytes) >= 0 ? 0 : READER_ERROR;
}
Beispiel #2
0
static int feed_back_bytes( mpg123_handle_t *fr, mpg_off_t bytes )
{
	if( bytes >= 0 )
		return bc_seekback(&fr->rdat.buffer, (mpg_ssize_t)bytes) >= 0 ? 0 : MPG123_ERR;
	return feed_skip_bytes( fr, -bytes ) >= 0 ? 0 : MPG123_ERR;
}