]> git.sesse.net Git - vlc/blobdiff - modules/control/netsync.c
Fixed segfault with some dvd subttile streams.
[vlc] / modules / control / netsync.c
index 11f59c792a4eff6dd9a7ff9b09015da83d6708bb..e6950464b1ce3ae4c411949e08927e862961b8cc 100644 (file)
@@ -72,20 +72,20 @@ static mtime_t GetClockRef( intf_thread_t *, mtime_t );
 #define MIP_LONGTEXT N_( "IP address of " \
   "the master client used for the network synchronisation." )
 
-vlc_module_begin();
-    set_shortname( N_("Network Sync"));
-    set_description( N_("Network synchronisation") );
-    set_category( CAT_ADVANCED );
-    set_subcategory( SUBCAT_ADVANCED_MISC );
+vlc_module_begin ()
+    set_shortname( N_("Network Sync"))
+    set_description( N_("Network synchronisation") )
+    set_category( CAT_ADVANCED )
+    set_subcategory( SUBCAT_ADVANCED_MISC )
 
     add_bool( "netsync-master", 0, NULL,
-              NETSYNC_TEXT, NETSYNC_LONGTEXT, true );
+              NETSYNC_TEXT, NETSYNC_LONGTEXT, true )
     add_string( "netsync-master-ip", NULL, NULL, MIP_TEXT, MIP_LONGTEXT,
-                true );
+                true )
 
-    set_capability( "interface", 0 );
-    set_callbacks( Activate, Close );
-vlc_module_end();
+    set_capability( "interface", 0 )
+    set_callbacks( Activate, Close )
+vlc_module_end ()
 
 /*****************************************************************************
  * Local prototypes
@@ -108,7 +108,7 @@ static int Activate( vlc_object_t *p_this )
             msg_Err( p_intf, "master address not specified" );
             return VLC_EGENERIC;
         }
-        fd = net_ConnectUDP( VLC_OBJECT(p_intf), psz_master, NETSYNC_PORT, 0 );
+        fd = net_ConnectUDP( VLC_OBJECT(p_intf), psz_master, NETSYNC_PORT, -1 );
         free( psz_master );
     }
     else