netsync: fix stale pointer on error
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Aug 2014 10:11:09 +0000 (13:11 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 16 Aug 2014 10:11:09 +0000 (13:11 +0300)
modules/control/netsync.c

index 565d472..88bc429 100644 (file)
@@ -296,6 +296,7 @@ static int PlaylistEvent(vlc_object_t *object, char const *cmd,
     if (vlc_clone(&sys->thread, sys->is_master ? Master : Slave, intf,
                   VLC_THREAD_PRIORITY_INPUT)) {
         vlc_object_release(input);
+        sys->input = NULL;
         return VLC_SUCCESS;
     }
     var_AddCallback(input, "intf-event", InputEvent, intf);