Commit 367b9a8a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

mmstu: return an error when file size is unknown

parent 26a7c80c
...@@ -247,6 +247,8 @@ static int Control( access_t *p_access, int i_query, va_list args ) ...@@ -247,6 +247,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_seekable )
return VLC_EGENERIC;
*va_arg( args, uint64_t * ) = p_sys->i_size; *va_arg( args, uint64_t * ) = p_sys->i_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