[vlc-commits] http: implement ACCESS_GET_SIZE
Ilkka Ollakka
git at videolan.org
Sun Jul 21 22:53:44 CEST 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Jul 21 22:57:12 2013 +0300| [2f92b225163b6bf4ce099ab7cb7cfb1f366c695e] | committer: Ilkka Ollakka
http: implement ACCESS_GET_SIZE
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2f92b225163b6bf4ce099ab7cb7cfb1f366c695e
---
modules/access/http.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/access/http.c b/modules/access/http.c
index 2ede821..638a2bc 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -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;
More information about the vlc-commits
mailing list