[vlc-commits] stl: remove redundant casts
Rémi Denis-Courmont
git at videolan.org
Wed Apr 19 19:50:18 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:39:30 2017 +0300| [5365b4d6391feed384a5626de01815b412af2564] | committer: Rémi Denis-Courmont
stl: remove redundant casts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5365b4d6391feed384a5626de01815b412af2564
---
modules/demux/stl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/stl.c b/modules/demux/stl.c
index b2c6a1b126..9a0d5a131e 100644
--- a/modules/demux/stl.c
+++ b/modules/demux/stl.c
@@ -134,7 +134,7 @@ static int Control(demux_t *demux, int query, va_list args)
}
case DEMUX_SET_POSITION:
{
- double f = (double)va_arg( args, double );
+ double f = va_arg( args, double );
if(sys->count && sys->index[sys->count-1].stop > 0)
{
int64_t i64 = f * sys->index[sys->count-1].stop;
@@ -144,7 +144,7 @@ static int Control(demux_t *demux, int query, va_list args)
}
case DEMUX_GET_POSITION:
{
- double *pf = (double*)va_arg(args, double *);
+ double *pf = va_arg(args, double *);
if(sys->current >= sys->count)
{
*pf = 1.0;
More information about the vlc-commits
mailing list