[DVDnav-discuss] [PATCH] "dvdnav_jump_to_sector" as an alternative to "dvdnav_time_search" (REV 1: handle delay when reading directly off disc)

Erik Hovland erik at hovland.org
Thu Nov 17 01:56:47 CET 2011


I was just going over the new patch and saw this code:
+    /* HACK: ifo->vts_tmapt is NULL
+     * get ifo again by calling ifoOpen
+     * (ifoOpen will return an ifo with a timeMap)
+     * cache this ifo by overwriting this->vm->vtsi */
+    if (tmapt == NULL) {
+      ifo = ifoOpen(this->vm->dvd, vts_idx);
+      this->vm->vtsi = ifo;
+      tmapt = ifo->vts_tmapt;
+      if (tmapt == NULL) return NULL;
+    }

This is probably why there is a #include <dvdread/ifo_read.h>.
Any reason why you feel you have to re-open the IFO? It seems like
overkill or that you are workaround a bug elsewhere because vts_tmapt
is NULL.

E

-- 
Erik Hovland
erik at hovland.org
http://hovland.org/


More information about the DVDnav-discuss mailing list