[vlc-devel] commit: nsv: Don't cast function return. (Pierre d'Herbemont )
git version control
git at videolan.org
Fri Aug 21 01:36:15 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 01:18:59 2009 +0200| [31523f87a2a4cd1a9b8020c031d8de9be1a4e187] | committer: Pierre d'Herbemont
nsv: Don't cast function return.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31523f87a2a4cd1a9b8020c031d8de9be1a4e187
---
modules/demux/nsv.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/demux/nsv.c b/modules/demux/nsv.c
index d8cedd1..a156c1c 100644
--- a/modules/demux/nsv.c
+++ b/modules/demux/nsv.c
@@ -331,7 +331,8 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
i64 = stream_Size( p_demux->s );
if( i64 > 0 )
{
- *pf = (double)stream_Tell( p_demux->s ) / (double)i64;
+ double current = stream_Tell( p_demux->s );
+ *pf = current / (double)i64;
}
else
{
More information about the vlc-devel
mailing list