[vlc-commits] control: size_t is an unsigned integer

Matthew Whitworth git at videolan.org
Fri Mar 2 16:52:00 CET 2018


vlc | branch: master | Matthew Whitworth <mwhitworth at gmail.com> | Fri Mar  2 16:46:44 2018 +0100| [af200697ac5627a6bece89b4168b05420353216f] | committer: Hugo Beauzée-Luyssen

control: size_t is an unsigned integer

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 src/input/control.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/control.c b/src/input/control.c
index 2b2f7108f1..1a70e1e189 100644
--- a/src/input/control.c
+++ b/src/input/control.c
@@ -543,7 +543,7 @@ int input_vaControl( input_thread_t *p_input, int i_query, va_list args )
             size_t *pi_vout = va_arg( args, size_t * );
 
             input_resource_HoldVouts( priv->p_resource, ppp_vout, pi_vout );
-            if( *pi_vout <= 0 )
+            if( *pi_vout == 0 )
                 return VLC_EGENERIC;
             return VLC_SUCCESS;
         }



More information about the vlc-commits mailing list