stream: don't require streams to set s->pos in seek callback

Instead, set s->pos depending on the success of the seek callback.
This commit is contained in:
wm4
2013-08-22 18:23:33 +02:00
parent a790f2133b
commit f806e268c6
9 changed files with 11 additions and 22 deletions

View File

@@ -36,7 +36,6 @@ static int fill_buffer(stream_t *s, char* buffer, int len)
static int seek(stream_t *s, int64_t newpos)
{
s->pos = newpos;
return 1;
}