Mercurial > mplayer.hg
comparison stream/stream_smb.c @ 35885:3389262720da
Fix previous commit, off_t must be replaced by int64_t
The commit replacing off_t by uint64_t was by accident,
I meant to commit this variant.
off_t must be replaced by a signed type to avoid breaking
things like seeking backwards and also detecting errors
from e.g. lseek without too complex hacks.
author | reimar |
---|---|
date | Sat, 16 Mar 2013 13:38:34 +0000 |
parents | b5abdfe9bc61 |
children |
comparison
equal
deleted
inserted
replaced
35884:edd8273dc025 | 35885:3389262720da |
---|---|
84 } | 84 } |
85 } | 85 } |
86 return STREAM_UNSUPPORTED; | 86 return STREAM_UNSUPPORTED; |
87 } | 87 } |
88 | 88 |
89 static int seek(stream_t *s, uint64_t newpos) { | 89 static int seek(stream_t *s, int64_t newpos) { |
90 s->pos = newpos; | 90 s->pos = newpos; |
91 if(smbc_lseek(s->fd,s->pos,SEEK_SET)<0) { | 91 if(smbc_lseek(s->fd,s->pos,SEEK_SET)<0) { |
92 s->eof=1; | 92 s->eof=1; |
93 return 0; | 93 return 0; |
94 } | 94 } |