]> git.sesse.net Git - vlc/blobdiff - modules/access_output/udp.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / access_output / udp.c
index be06d012a9b579d850fa32ccf75643e1681fc9f2..21ff9a4de49f2423a6150c2508f3a296c546b0f7 100644 (file)
@@ -33,9 +33,6 @@
 #include <vlc_plugin.h>
 
 #include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-#include <fcntl.h>
 #include <assert.h>
 
 #include <vlc_sout.h>
@@ -87,7 +84,7 @@ vlc_module_begin ()
     add_obsolete_integer( SOUT_CFG_PREFIX "late" )
     add_obsolete_bool( SOUT_CFG_PREFIX "raw" )
 
-    set_capability( "sout access", 100 )
+    set_capability( "sout access", 0 )
     add_shortcut( "udp" )
     set_callbacks( Open, Close )
 vlc_module_end ()
@@ -175,7 +172,7 @@ static int Open( vlc_object_t *p_this )
     if (psz_parser[0] == '[')
         psz_parser = strchr (psz_parser, ']');
 
-    psz_parser = strchr (psz_parser ?: psz_dst_addr, ':');
+    psz_parser = strchr (psz_parser ? psz_parser : psz_dst_addr, ':');
     if (psz_parser != NULL)
     {
         *psz_parser++ = '\0';