Commit 5f9ea661 authored by Laurent Aimar's avatar Laurent Aimar

Fixed demux_vaControlHelper GET_TIME implementation.

It should return the current time even when the size isn't known.
parent 2d63b67e
......@@ -234,7 +234,7 @@ int demux_vaControlHelper( stream_t *s,
case DEMUX_GET_TIME:
pi64 = (int64_t*)va_arg( args, int64_t * );
if( i_bitrate > 0 && i_end > i_start )
if( i_bitrate > 0 && i_tell >= i_start )
{
*pi64 = INT64_C(8000000) * (i_tell - i_start) / i_bitrate;
return VLC_SUCCESS;
......
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