summaryrefslogtreecommitdiffstats
path: root/stream/stream_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r--stream/stream_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c
index fe893af0b4..8b587e6048 100644
--- a/stream/stream_file.c
+++ b/stream/stream_file.c
@@ -73,7 +73,7 @@ static int write_buffer(stream_t *s, char* buffer, int len) {
return len;
}
-static int seek(stream_t *s,off_t newpos) {
+static int seek(stream_t *s,int64_t newpos) {
s->pos = newpos;
if(lseek(s->fd,s->pos,SEEK_SET)<0) {
s->eof=1;
@@ -82,7 +82,7 @@ static int seek(stream_t *s,off_t newpos) {
return 1;
}
-static int seek_forward(stream_t *s,off_t newpos) {
+static int seek_forward(stream_t *s,int64_t newpos) {
if(newpos<s->pos){
mp_msg(MSGT_STREAM,MSGL_INFO,"Cannot seek backward in linear streams!\n");
return 0;
@@ -116,7 +116,7 @@ static int control(stream_t *s, int cmd, void *arg) {
static int open_f(stream_t *stream,int mode, void* opts, int* file_format) {
int f;
mode_t m = 0;
- off_t len;
+ int64_t len;
unsigned char *filename;
struct stream_priv_s* p = (struct stream_priv_s*)opts;