[DVDnav-discuss] r1245 - trunk/libdvdnav/src/vm/vm.c
rathann
subversion at mplayerhq.hu
Sun Dec 9 22:13:14 CET 2012
Author: rathann
Date: Sun Dec 9 22:13:14 2012
New Revision: 1245
Log:
Fix failed assertion when there's no menu.
Patch by Erik Hovland.
Modified:
trunk/libdvdnav/src/vm/vm.c
Modified: trunk/libdvdnav/src/vm/vm.c
==============================================================================
--- trunk/libdvdnav/src/vm/vm.c Sun Dec 9 22:07:59 2012 (r1244)
+++ trunk/libdvdnav/src/vm/vm.c Sun Dec 9 22:13:14 2012 (r1245)
@@ -1762,7 +1762,8 @@ static int set_PGCN(vm_t *vm, int pgcN)
pgcit_t *pgcit;
pgcit = get_PGCIT(vm);
- assert(pgcit != NULL); /* ?? Make this return -1 instead */
+ if (pgcit != NULL)
+ return 0;
if(pgcN < 1 || pgcN > pgcit->nr_of_pgci_srp) {
#ifdef TRACE
More information about the DVDnav-discuss
mailing list