[vlc-devel] commit: ps: Fix 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:31:21 2009 +0200| [0a27f7da1002e5139ccd15bb1e964ced4fdcfe42] | committer: Pierre d'Herbemont
ps: Fix bad function return value cast.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0a27f7da1002e5139ccd15bb1e964ced4fdcfe42
---
modules/demux/ps.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/demux/ps.c b/modules/demux/ps.c
index 099e603..610d424 100644
--- a/modules/demux/ps.c
+++ b/modules/demux/ps.c
@@ -456,7 +456,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