[vlc-devel] commit: flac: Fix a bad cast from function call warning. (Pierre d' Herbemont )
git version control
git at videolan.org
Fri Aug 21 01:05:59 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 01:04:32 2009 +0200| [8dc5af515d36089f28483c4eca3dd9180eaae848] | committer: Pierre d'Herbemont
flac: Fix a bad cast from function call warning.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8dc5af515d36089f28483c4eca3dd9180eaae848
---
modules/demux/flac.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/demux/flac.c b/modules/demux/flac.c
index 91a2ccc..8b0ca38 100644
--- a/modules/demux/flac.c
+++ b/modules/demux/flac.c
@@ -382,7 +382,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
double *pf = (double*)va_arg( args, double * );
const int64_t i_length = ControlGetLength(p_demux);
if( i_length > 0 )
- *pf = (double)ControlGetTime(p_demux) / (double)i_length;
+ {
+ double current = ControlGetTime(p_demux);
+ *pf = current / (double)i_length;
+ }
else
*pf= 0.0;
return VLC_SUCCESS;
More information about the vlc-devel
mailing list