Commit b026ed3d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Do not assert on NULL pgcit

parent aa3659d8
......@@ -242,7 +242,10 @@ int get_ID(vm_t *vm, int id) {
/* Relies on state to get the correct pgcit. */
pgcit = get_PGCIT(vm);
assert(pgcit != NULL);
if(pgcit == NULL) {
fprintf(MSG_OUT, "libdvdnav: PGCIT null!\n");
return 0;
#ifdef TRACE
fprintf(MSG_OUT, "libdvdnav: ** Searching for menu (0x%x) entry PGC\n", id);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment