changeset 224:f19fce15577b src

fix assertion failure when someone asks for the position between an Exit command and the following get_next_block() call
author mroi
date Wed, 07 Jan 2004 19:35:12 +0000
parents 2d79ef3f3956
children 9b1b740e3fc9
files searching.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/searching.c	Wed Jan 07 19:34:28 2004 +0000
+++ b/searching.c	Wed Jan 07 19:35:12 2004 +0000
@@ -405,7 +405,7 @@
 
   pthread_mutex_lock(&this->vm_lock);
   state = &(this->vm->state);
-  if(!state->pgc) {
+  if(!state->pgc || this->vm->stopped) {
     printerr("No current PGC.");
     pthread_mutex_unlock(&this->vm_lock);
     return DVDNAV_STATUS_ERR;