changeset 163:5d8955d7a01a src

first try resuming, then check if it worked
author mroi
date Mon, 07 Apr 2003 16:41:08 +0000
parents 0fd70a257b44
children 58c914a3ccbd
files searching.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/searching.c	Sun Apr 06 16:56:22 2003 +0000
+++ b/searching.c	Mon Apr 07 16:41:08 2003 +0000
@@ -359,7 +359,7 @@
   try_vm = vm_new_copy(this->vm);
   if ( (menu == DVD_MENU_Escape) && (this->vm->state.domain != VTS_DOMAIN)) {
     /* Try resume */
-    if (!try_vm->stopped && vm_resume(try_vm)) {
+    if (vm_resume(try_vm) && !try_vm->stopped) {
         /* merge changes on success */
         vm_merge(this->vm, try_vm);
         vm_free_copy(try_vm);