rendered paste bodyIndex: DVDRingBuffer.cpp
===================================================================
--- DVDRingBuffer.cpp (revision 15759)
+++ DVDRingBuffer.cpp (working copy)
@@ -1005,11 +1005,15 @@
int32_t button;
pci_t *pci;
+ dvdnav_status_t dvdRet;
dvdnav_highlight_area_t hl;
dvdnav_get_current_highlight(dvdnav, &button);
pci = dvdnav_get_current_nav_pci(dvdnav);
- dvdnav_get_highlight_area(pci, button, b_mode, &hl);
+ dvdRet = dvdnav_get_highlight_area(pci, button, b_mode, &hl);
+ if (dvdRet == DVDNAV_STATUS_ERR)
+ return false;
+
for (int i = 0 ; i < 4 ; i++)
{
button_alpha[i] = 0xf & (hl.palette >> (4 * i ));