Re: ogle pre-0.9.0 on OpenBSD :*

H}kan Hjort <[email protected]>
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Wed Feb 19 2003, Martin Piskernig wrote:
> On Mittwoch, 19. Februar 2003 19:54, H}kan Hjort wrote:
> > Ablility to add and use DVD Bookmarks (resume at any stored point).
> 
> Excuse my (maybe stupid) question but how exactly can I do that? I 
> didn't find a function in dvdbookmarks.h that lets you really jump to a 
> bookmark?
> 
As always it's boring to write documentation... ;)
See dvd_cli/bindings.c for an example.
The short version (without any error checks) is:

bm = DVDBookmarkOpen(disc_id, NULL, 0);
max = DVDBookmarkGetNr(bm);
DVDBookmarkGet(bm, bookmark_number, &state, NULL, NULL, NULL)
DVDSetState(nav, state);
DVDBookmarkClose(bm);

So it's DVDSetState() that does the 'jump'.

-- 
Håkan Hjort
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.