[vlc-devel] commit: Fixed demux_vaControlHelper GET_TIME implementation. ( Laurent Aimar )
git version control
git at videolan.org
Sat May 23 11:43:53 CEST 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri May 22 21:30:16 2009 +0200| [5f9ea6614282bd752597f0e15eec0d50a2f26a3d] | committer: Laurent Aimar
Fixed demux_vaControlHelper GET_TIME implementation.
It should return the current time even when the size isn't known.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f9ea6614282bd752597f0e15eec0d50a2f26a3d
---
src/input/demux.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/input/demux.c b/src/input/demux.c
index 3d210ff..4d98321 100644
--- a/src/input/demux.c
+++ b/src/input/demux.c
@@ -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;
More information about the vlc-devel
mailing list