[vlc-commits] bluray: Kill some warnings.
Hugo Beauzée-Luyssen
git at videolan.org
Mon Apr 16 14:14:23 CEST 2012
vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Apr 16 14:14:02 2012 +0200| [ebc994644c818911868dc502d1682dcb7ec6cac5] | committer: Hugo Beauzée-Luyssen
bluray: Kill some warnings.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ebc994644c818911868dc502d1682dcb7ec6cac5
---
modules/access/bluray.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 6d7c843..1d4eb96 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -996,7 +996,7 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
case DEMUX_GET_LENGTH:
{
int64_t *pi_length = (int64_t*)va_arg(args, int64_t *);
- *pi_length = p_demux->info.i_title < p_sys->i_title ? CUR_LENGTH : 0;
+ *pi_length = p_demux->info.i_title < (int)p_sys->i_title ? CUR_LENGTH : 0;
return VLC_SUCCESS;
}
case DEMUX_SET_TIME:
@@ -1015,7 +1015,7 @@ static int blurayControl(demux_t *p_demux, int query, va_list args)
case DEMUX_GET_POSITION:
{
double *pf_position = (double*)va_arg( args, double * );
- *pf_position = p_demux->info.i_title < p_sys->i_title ?
+ *pf_position = p_demux->info.i_title < (int)p_sys->i_title ?
(double)FROM_TICKS(bd_tell_time(p_sys->bluray))/CUR_LENGTH : 0.0;
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list