[vlc-commits] ts: fix warning
Rémi Denis-Courmont
git at videolan.org
Tue Apr 1 22:45:26 CEST 2014
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 1 23:43:34 2014 +0300| [95d5c47c5577c3a61443dcd20e77b2de52d96062] | committer: Rémi Denis-Courmont
ts: fix warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=95d5c47c5577c3a61443dcd20e77b2de52d96062
---
modules/demux/ts.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 093618e..dbceffa 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -1017,7 +1017,11 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if( !DVBEventInformation( p_demux, &i_time, &i_length ) && i_length > 0 )
*pf = (double)i_time/(double)i_length;
else if( (i64 = stream_Size( p_demux->s) ) > 0 )
- *pf = (double)stream_Tell( p_demux->s ) / (double)i64;
+ {
+ int64_t offset = stream_Tell( p_demux->s );
+
+ *pf = (double)offset / (double)i64;
+ }
else
*pf = 0.0;
}
More information about the vlc-commits
mailing list