Skip to content

Commit

Permalink
avio: fix missing size
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi Denis-Courmont committed Sep 7, 2017
1 parent 6a800c0 commit a87bada
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/access/avio.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,12 @@ int OpenAvio(vlc_object_t *object)
}
free(url);

int64_t size = avio_size(sys->context);
sys->size = avio_size(sys->context);

bool seekable;
seekable = sys->context->seekable;
msg_Dbg(access, "%sseekable, size=%"PRIi64, seekable ? "" : "not ", size);
msg_Dbg(access, "%sseekable, size=%"PRIi64, seekable ? "" : "not ",
sys->size);

/* */
access->pf_read = Read;
Expand Down

0 comments on commit a87bada

Please sign in to comment.