[vlc-commits] netsync: fix stale pointer on error

Rémi Denis-Courmont git at videolan.org
Sat Aug 16 12:48:28 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 16 13:11:09 2014 +0300| [3cd098faaf269be951f522b0aab0c1ee9dcdfbbe] | committer: Rémi Denis-Courmont

netsync: fix stale pointer on error

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

 modules/control/netsync.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/control/netsync.c b/modules/control/netsync.c
index 565d472..88bc429 100644
--- a/modules/control/netsync.c
+++ b/modules/control/netsync.c
@@ -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);



More information about the vlc-commits mailing list