Re: ogle_stdin and question on exiting
H}kan Hjort <[email protected]> Thu, 5 Feb 2004 09:54:13 +0100
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
Sun Feb 01 2004, Daniel Risacher wrote:
>
> I put together an ugly, text-based front end to ogle for use as a
> connection between ogle and a custom remote-control setup. Perhaps
> this will be useful to someone.
>
> This was based on ogle_ir by Rossen Tchobanski.
>
> http://www.risacher.org/ogle_stdin
>
> While writing ogle_stdin, I had the problem that I wanted to be able
> to make Ogle exit, but there doesn't seem to be a way to do that
> through the control API. DVDCloseNav() closes the connection, but the
> player keeps on running. I solved my dilemma by calling
> system("killall ogle_nav"), but that's hardly satisfying. Is there
> some mechanism for telling ogle to clean-up and quit that I didn't
> see?
>
No, and well that shouldn't happen.
This is our quit action handler from the dvd_cli front end:
void actionQuit(void *data)
{
DVDResult_t res;
autosave_bookmark();
res = DVDCloseNav(nav);
if(res != DVD_E_Ok ) {
DVDPerror("DVDCloseNav", res);
}
exit(0);
}
--
HÃ¥kan Hjort