]> git.sesse.net Git - vlc/commitdiff
Fix crash due to mtu being equal to 0
authorRafaël Carré <funman@videolan.org>
Fri, 31 Aug 2007 10:32:50 +0000 (10:32 +0000)
committerRafaël Carré <funman@videolan.org>
Fri, 31 Aug 2007 10:32:50 +0000 (10:32 +0000)
modules/access_output/udp.c

index 45347e8bb70cc32f7284ccbde54351bffeb5d888..dc47a7e0f6a090ce772f710be10ad9f807180b76 100644 (file)
@@ -373,7 +373,7 @@ static int Open( vlc_object_t *p_this )
     p_sys->p_thread->i_group =
         var_GetInteger( p_access, SOUT_CFG_PREFIX "group" );
 
-    p_sys->i_mtu = var_GetInteger( p_this, "mtu" );
+    p_sys->i_mtu = var_CreateGetInteger( p_this, "mtu" );
 
     srand( (uint32_t)mdate());
     p_sys->p_buffer          = NULL;