diff options
Diffstat (limited to 'stream/stream_smb.c')
-rw-r--r-- | stream/stream_smb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/stream_smb.c b/stream/stream_smb.c index 971c394051..d50258be97 100644 --- a/stream/stream_smb.c +++ b/stream/stream_smb.c @@ -76,8 +76,7 @@ static int control(stream_t *s, int cmd, void *arg) { static int seek(stream_t *s,int64_t newpos) { struct priv *p = s->priv; - s->pos = newpos; - if(smbc_lseek(p->fd,s->pos,SEEK_SET)<0) { + if(smbc_lseek(p->fd,newpos,SEEK_SET)<0) { return 0; } return 1; |