Do not always fail for circular filter chains
authorVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:41:11 +0000 (21:41 +0000)
committerVitor Sessak <vitor1001@gmail.com>
Fri, 15 Feb 2008 21:41:11 +0000 (21:41 +0000)
Commited in SoC by Vitor Sessak on 2008-02-10 16:52:54

Originally committed as revision 12050 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/avfilter.c

index d431258..3a89fc6 100644 (file)
@@ -132,8 +132,8 @@ int avfilter_config_links(AVFilterContext *filter)
         case AVLINK_INIT:
             continue;
         case AVLINK_STARTINIT:
-            av_log(filter, AV_LOG_ERROR, "circular filter chain detected\n");
-            return -1;
+            av_log(filter, AV_LOG_INFO, "circular filter chain detected\n");
+            return 0;
         case AVLINK_UNINIT:
             link->init_state = AVLINK_STARTINIT;