Commit 522dbd1b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

file: update size whenever it is requested

parent a4a45443
...@@ -389,8 +389,14 @@ static int FileControl( access_t *p_access, int i_query, va_list args ) ...@@ -389,8 +389,14 @@ static int FileControl( access_t *p_access, int i_query, va_list args )
break; break;
case ACCESS_GET_SIZE: case ACCESS_GET_SIZE:
{
struct stat st;
if (fstat (p_sys->fd, &st) == 0)
p_sys->size = st.st_size;
*va_arg( args, uint64_t * ) = p_sys->size; *va_arg( args, uint64_t * ) = p_sys->size;
break; break;
}
/* */ /* */
case ACCESS_GET_PTS_DELAY: case ACCESS_GET_PTS_DELAY:
......
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