Commit 1d96a2e7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

http: return an error when file size is unknown

parent 80b8a70e
...@@ -925,6 +925,8 @@ static int Control( access_t *p_access, int i_query, va_list args ) ...@@ -925,6 +925,8 @@ static int Control( access_t *p_access, int i_query, va_list args )
break; break;
case ACCESS_GET_SIZE: case ACCESS_GET_SIZE:
if( !p_sys->b_has_size )
return VLC_EGENERIC;
pi_64 = (int64_t*)va_arg( args, int64_t * ); pi_64 = (int64_t*)va_arg( args, int64_t * );
*pi_64 = p_sys->size; *pi_64 = p_sys->size;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment