input/var: fix deletion of seekpoint navigation callbacks
commitee8f0516a22a975e44bec35ea1991b076133fd94
authorFilip Roséen <filip@videolabs.io>
Sat, 16 Jul 2016 20:38:27 +0000 (16 22:38 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 18 Jul 2016 04:22:15 +0000 (18 06:22 +0200)
treec6c28a51c3f4bdf50d76cba32908f082e21a7827
parent3f66ca77df6e712852e920230612021c68565df4
input/var: fix deletion of seekpoint navigation callbacks

The vlc-variables that will have their callbacks removed through
InputDelCallbacks related to seekpoint-navigation only exists if the
current title has more than one seekpoint.

This means that we would potentially try to remove callbacks from
variables that does not exist.

This fixes the issue by having symmetry between creation of the
callbacks (src/input/var.c:381-397), and deletion of such.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/input/var.c