[vlc-commits] avio: fix missing size
    Rémi Denis-Courmont 
    git at videolan.org
       
    Thu Sep  7 21:12:22 CEST 2017
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Sep  7 22:11:50 2017 +0300| [a87badaaa489729ae5a5dfc1ce12394c94b58823] | committer: Rémi Denis-Courmont
avio: fix missing size
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a87badaaa489729ae5a5dfc1ce12394c94b58823
---
 modules/access/avio.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/access/avio.c b/modules/access/avio.c
index e8618cf7e7..c6f6bbd3db 100644
--- a/modules/access/avio.c
+++ b/modules/access/avio.c
@@ -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;
    
    
More information about the vlc-commits
mailing list