diff dvdnav.c @ 256:6299ccea8a38 src

killing a lot of asserts and turning them into forced executions of Exit, moving the VM into the STOP domain; also use this condition to report failures right on VM start as problems with the disc (patch heavily inspired by Bastien)
author mroi
date Wed, 15 Dec 2004 21:16:58 +0000
parents 5d643668f1e3
children 7708d2fc1745
line wrap: on
line diff
--- a/dvdnav.c	Sat Nov 20 21:10:25 2004 +0000
+++ b/dvdnav.c	Wed Dec 15 21:16:58 2004 +0000
@@ -403,7 +403,10 @@
   
   if(!this->started) {
     /* Start the VM */
-    vm_start(this->vm);
+    if (!vm_start(this->vm)) {
+      printerr("Encrypted or faulty DVD");
+      return DVDNAV_STATUS_ERR;
+    }
     this->started = 1;
   }