[vlc-commits] input: fix changing ES on big-endian (fixes #6163)

Rémi Denis-Courmont git at videolan.org
Sat May 4 16:21:31 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May  4 17:20:58 2013 +0300| [ecf6d12f439132e4ffde0b70387a2da31b8a9d42] | committer: Rémi Denis-Courmont

input: fix changing ES on big-endian (fixes #6163)

int64_t != int

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ecf6d12f439132e4ffde0b70387a2da31b8a9d42
---

 src/input/input.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/input/input.c b/src/input/input.c
index 5c73331..ebe6350 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -1873,11 +1873,13 @@ static bool Control( input_thread_t *p_input,
 
         case INPUT_CONTROL_SET_ES:
             /* No need to force update, es_out does it if needed */
-            es_out_Control( p_input->p->p_es_out_display, ES_OUT_SET_ES_BY_ID, val.i_int );
+            es_out_Control( p_input->p->p_es_out_display,
+                            ES_OUT_SET_ES_BY_ID, (int)val.i_int );
             break;
 
         case INPUT_CONTROL_RESTART_ES:
-            es_out_Control( p_input->p->p_es_out_display, ES_OUT_RESTART_ES_BY_ID, val.i_int );
+            es_out_Control( p_input->p->p_es_out_display,
+                            ES_OUT_RESTART_ES_BY_ID, (int)val.i_int );
             break;
 
         case INPUT_CONTROL_SET_AUDIO_DELAY:



More information about the vlc-commits mailing list