comparison 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
comparison
equal deleted inserted replaced
255:3e5192f8113f 256:6299ccea8a38
401 401
402 pthread_mutex_lock(&this->vm_lock); 402 pthread_mutex_lock(&this->vm_lock);
403 403
404 if(!this->started) { 404 if(!this->started) {
405 /* Start the VM */ 405 /* Start the VM */
406 vm_start(this->vm); 406 if (!vm_start(this->vm)) {
407 printerr("Encrypted or faulty DVD");
408 return DVDNAV_STATUS_ERR;
409 }
407 this->started = 1; 410 this->started = 1;
408 } 411 }
409 412
410 state = &(this->vm->state); 413 state = &(this->vm->state);
411 (*event) = DVDNAV_NOP; 414 (*event) = DVDNAV_NOP;