[vlc-commits] netsync: fix stale pointer on error
Rémi Denis-Courmont
git at videolan.org
Sat Aug 16 12:50:01 CEST 2014
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 16 13:11:09 2014 +0300| [003586cc4acce2527cd56cbc15f6b5dfefe322a9] | committer: Rémi Denis-Courmont
netsync: fix stale pointer on error
(cherry picked from commit 3cd098faaf269be951f522b0aab0c1ee9dcdfbbe)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=003586cc4acce2527cd56cbc15f6b5dfefe322a9
---
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