resindvd: Rework button highlight calculation slightly
authorJan Schmidt <thaytan@noraisin.net>
Wed, 13 May 2009 11:47:43 +0000 (12:47 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Thu, 14 May 2009 10:28:15 +0000 (11:28 +0100)
commitcae9db0d8c4c3ff939ac6ac1d4d574b2c030b536
treebca09b0d2a6a81a696bbcb77b67d8cbd160cb12a
parent73f77c04aacd5e6ad97e34546a7a9517b430a901
resindvd: Rework button highlight calculation slightly

When the current button number is higher than the number of available
buttons, switch to the highest numbered button rather than the lowest.

Also, don't throw errors when we fail to retrieve some button info
from libdvdnav, just reset the highlight.
ext/resindvd/resindvdsrc.c