Mercurial > libdvdnav.hg
diff navigation.c @ 223:2d79ef3f3956 src
we should not start the VM on dvdnav_get_number_of_titles,
instead, an unstarted VM should be an error like in dvdnav_get_number_of_parts
author | mroi |
---|---|
date | Wed, 07 Jan 2004 19:34:28 +0000 |
parents | 6b1bfe8f5283 |
children | 5124cfd4725d |
line wrap: on
line diff
--- a/navigation.c Thu Jan 01 15:13:13 2004 +0000 +++ b/navigation.c Wed Jan 07 19:34:28 2004 +0000 @@ -60,11 +60,9 @@ printerr("Passed a NULL pointer."); return DVDNAV_STATUS_ERR; } - if(!this->started) { - /* Start the VM */ - vm_start(this->vm); - this->started = 1; + printerr("Virtual DVD machine not started."); + return DVDNAV_STATUS_ERR; } (*titles) = vm_get_vmgi(this->vm)->tt_srpt->nr_of_srpts;