]> git.sesse.net Git - vlc/commitdiff
http: implement ACCESS_GET_SIZE
authorIlkka Ollakka <ileoo@videolan.org>
Sun, 21 Jul 2013 19:57:12 +0000 (22:57 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Sun, 21 Jul 2013 19:57:47 +0000 (22:57 +0300)
modules/access/http.c

index 2ede821df312bdf3577577ada8ab4875f76a7a23..638a2bcd06f2f78b928efed42cdc809998e48c02 100644 (file)
@@ -994,6 +994,11 @@ static int Control( access_t *p_access, int i_query, va_list args )
                 * var_InheritInteger( p_access, "network-caching" );
             break;
 
+        case ACCESS_GET_SIZE:
+            pi_64 = (int64_t*)va_arg( args, int64_t * );
+            *pi_64 = p_sys->size;
+           break;
+
         /* */
         case ACCESS_SET_PAUSE_STATE:
             break;