[DVDnav-discuss] r1019 - trunk/libdvdnav/src/vm/vm.c

nicodvb subversion at mplayerhq.hu
Tue Apr 22 09:36:49 CEST 2008


Author: nicodvb
Date: Tue Apr 22 09:36:49 2008
New Revision: 1019

Log:
10l to me: in vm_get_current_menu() I forgot to attach
Erik's patch that returned 0 if get_PGCIT() fails


Modified:
   trunk/libdvdnav/src/vm/vm.c

Modified: trunk/libdvdnav/src/vm/vm.c
==============================================================================
--- trunk/libdvdnav/src/vm/vm.c	(original)
+++ trunk/libdvdnav/src/vm/vm.c	Tue Apr 22 09:36:49 2008
@@ -612,6 +612,7 @@ int vm_get_current_menu(vm_t *vm, int *m
   int pgcn;
   pgcn = (vm->state).pgcN;
   pgcit = get_PGCIT(vm);
+  if(pgcit==NULL) return 0;
   *menuid = pgcit->pgci_srp[pgcn - 1].entry_id & 0xf ;
   return 1;
 }



More information about the DVDnav-discuss mailing list