[vlc-devel] commit: pva: Bad function return value cast. (Pierre d'Herbemont )
git version control
git at videolan.org
Fri Aug 21 01:36:16 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 01:30:32 2009 +0200| [3e69ae8da081d7501d577fe331faf62a6226a7ff] | committer: Pierre d'Herbemont
pva: Bad function return value cast.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3e69ae8da081d7501d577fe331faf62a6226a7ff
---
modules/demux/pva.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/demux/pva.c b/modules/demux/pva.c
index b247594..6b449bd 100644
--- a/modules/demux/pva.c
+++ b/modules/demux/pva.c
@@ -285,7 +285,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if( ( i64 = stream_Size( p_demux->s ) ) > 0 )
{
pf = (double*) va_arg( args, double* );
- *pf = (double)stream_Tell( p_demux->s ) / (double)i64;
+ double current = stream_Tell( p_demux->s );
+ *pf = current / (double)i64;
return VLC_SUCCESS;
}
return VLC_EGENERIC;
More information about the vlc-devel
mailing list