input/control: UpdateBookmarksOption: prevent exessive bookmark-options
commitcffd83c6e5f8869d4079474abe6e2aae9e543845
authorFilip Roséen <filip@atch.se>
Thu, 18 May 2017 12:17:54 +0000 (18 14:17 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 18 May 2017 19:22:57 +0000 (18 21:22 +0200)
treeadabdafd34ae107099207f37083eced632cea23e
parent987e63af1e3525b875283bfb2ac574005ca080ac
input/control: UpdateBookmarksOption: prevent exessive bookmark-options

If UpdateBookmarksOption is called more than once, where the generated
bookmark-variable string would be different, it will result in the
input_item_t having several entries for "bookmarks=".

This patch makes it so that we overwrite any existing entry if such is
available, instead of simply appending a new one.

fixes: #18338

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