diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-03-08 14:36:13 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-03-08 14:36:13 +0000 |
commit | df97e6a06ec6072e095dce63983e1e9865667a77 (patch) | |
tree | 0e47cec09569f8e9f3210a9b6fa844597f25a7c9 | |
parent | 909a84f95ac808f5b4881bb43fa4ea235345140f (diff) | |
download | xine-lib-df97e6a06ec6072e095dce63983e1e9865667a77.tar.gz xine-lib-df97e6a06ec6072e095dce63983e1e9865667a77.tar.bz2 |
syncing libdvdnav to cvs should fix remaining highlight problems
CVS patchset: 4375
CVS date: 2003/03/08 14:36:13
-rw-r--r-- | src/input/libdvdnav/diff_against_cvs.patch | 17 | ||||
-rw-r--r-- | src/input/libdvdnav/dvdnav_events.h | 4 | ||||
-rw-r--r-- | src/input/libdvdnav/highlight.c | 22 | ||||
-rw-r--r-- | src/input/libdvdnav/searching.c | 3 |
4 files changed, 16 insertions, 30 deletions
diff --git a/src/input/libdvdnav/diff_against_cvs.patch b/src/input/libdvdnav/diff_against_cvs.patch index 7c7b109d8..d9d033124 100644 --- a/src/input/libdvdnav/diff_against_cvs.patch +++ b/src/input/libdvdnav/diff_against_cvs.patch @@ -60,11 +60,11 @@ #define DVDNAV_EVENTS_H_INCLUDED -#include <dvdread/ifo_types.h> --#include <dvdread/nav_types.h> -#include <dvdread/dvd_reader.h> +-#include <dvdread/nav_types.h> +#include "ifo_types.h" -+#include "../../libspudec/nav_types.h" +#include "dvd_reader.h" ++#include "nav_types.h" /** * \file dvdnav_events.h @@ -95,7 +95,7 @@ #include "vm.h" -#include <dvdread/nav_types.h> -+#include "../../libspudec/nav_types.h" ++#include "nav_types.h" /* #define BUTTON_TESTING @@ -108,17 +108,6 @@ #include "vmcmd.h" static void print_time(dvd_time_t *dtime) { ---- src/input/libdvdnav/searching.c Fri Jul 26 12:58:10 2002 -+++ src/input/libdvdnav/searching.c Fri Aug 9 22:03:20 2002 -@@ -30,7 +30,7 @@ - #include "dvdnav_internal.h" - - #include "vm.h" --#include <dvdread/nav_types.h> -+#include "../../libspudec/nav_types.h" - - /* - #define LOG_DEBUG --- src/input/libdvdnav/vm.c Sat Jul 6 18:12:09 2002 +++ src/input/libdvdnav/vm.c Fri Aug 9 22:03:48 2002 @@ -37,8 +37,8 @@ diff --git a/src/input/libdvdnav/dvdnav_events.h b/src/input/libdvdnav/dvdnav_events.h index bb297f85d..99bca02c6 100644 --- a/src/input/libdvdnav/dvdnav_events.h +++ b/src/input/libdvdnav/dvdnav_events.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dvdnav_events.h,v 1.6 2003/03/06 23:18:42 mroi Exp $ + * $Id: dvdnav_events.h,v 1.7 2003/03/08 14:36:13 mroi Exp $ * */ @@ -25,8 +25,8 @@ #define DVDNAV_EVENTS_H_INCLUDED #include "ifo_types.h" -#include "../../libspudec/nav_types.h" #include "dvd_reader.h" +#include "nav_types.h" /** * \file dvdnav_events.h diff --git a/src/input/libdvdnav/highlight.c b/src/input/libdvdnav/highlight.c index 9a6e54881..c9685f089 100644 --- a/src/input/libdvdnav/highlight.c +++ b/src/input/libdvdnav/highlight.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: highlight.c,v 1.9 2003/03/06 23:18:43 mroi Exp $ + * $Id: highlight.c,v 1.10 2003/03/08 14:36:13 mroi Exp $ * */ @@ -30,7 +30,7 @@ #include "dvdnav_internal.h" #include "vm.h" -#include "../../libspudec/nav_types.h" +#include "nav_types.h" /* #define BUTTON_TESTING @@ -215,7 +215,7 @@ dvdnav_status_t dvdnav_get_current_highlight(dvdnav_t *this, int *button) { } /* Simply return the appropriate value based on the SPRM */ - (*button) = (this->vm->state.HL_BTNN_REG) >> 10; + (*button) = this->position_current.button; return S_OK; } @@ -223,10 +223,12 @@ dvdnav_status_t dvdnav_get_current_highlight(dvdnav_t *this, int *button) { static btni_t *get_current_button(dvdnav_t *this, pci_t *pci) { int button = 0; - if(dvdnav_get_current_highlight(this, &button) != S_OK) { - printerr("Unable to get information on current highlight."); - return NULL; + if(!this) { + printerr("Passed a NULL pointer."); + return S_ERR; } + + button = this->vm->state.HL_BTNN_REG >> 10; #ifdef BUTTON_TESTING nav_print_PCI(&(this->pci)); #endif @@ -353,10 +355,7 @@ dvdnav_status_t dvdnav_button_activate(dvdnav_t *this, pci_t *pci) { pthread_mutex_lock(&this->vm_lock); - if(dvdnav_get_current_highlight(this, &button) != S_OK) { - pthread_mutex_unlock(&this->vm_lock); - return S_ERR; - } + button = this->vm->state.HL_BTNN_REG >> 10; if((button <= 0) || (button > pci->hli.hl_gi.btn_ns)) { /* Special code to handle still menus with no buttons. @@ -465,8 +464,7 @@ dvdnav_status_t dvdnav_mouse_select(dvdnav_t *this, pci_t *pci, int x, int y) { return S_ERR; } - if(dvdnav_get_current_highlight(this, &cur_button) != S_OK) - return S_ERR; + cur_button = this->vm->state.HL_BTNN_REG >> 10; best = 0; dist = 0x08000000; /* >> than (720*720)+(567*567); */ diff --git a/src/input/libdvdnav/searching.c b/src/input/libdvdnav/searching.c index a3b662534..526fb94e8 100644 --- a/src/input/libdvdnav/searching.c +++ b/src/input/libdvdnav/searching.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: searching.c,v 1.9 2003/03/06 23:18:43 mroi Exp $ + * $Id: searching.c,v 1.10 2003/03/08 14:36:13 mroi Exp $ * */ @@ -30,7 +30,6 @@ #include "dvdnav_internal.h" #include "vm.h" -#include "../../libspudec/nav_types.h" /* #define LOG_DEBUG |