changeset 16072:456246827b88

Avoid hang with -af-adv force=3
author reimar
date Sat, 23 Jul 2005 16:58:25 +0000
parents f453658297c3
children 8e6f205c6e22
files libaf/af.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libaf/af.c	Sat Jul 23 16:54:45 2005 +0000
+++ b/libaf/af.c	Sat Jul 23 16:58:25 2005 +0000
@@ -294,6 +294,11 @@
 	}
 	af=new->next;
       }
+      else {
+        af_msg(AF_MSG_ERROR, "[libaf] Automatic filter insertion disabled "
+               "but formats do not match. Giving up.\n");
+        return AF_ERROR;
+      }
       break;
     }
     case AF_DETACH:{ // Filter is redundant and wants to be unloaded