summaryrefslogtreecommitdiff
path: root/libavfilter/avfiltergraph.c
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-04-04 20:07:34 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-04-04 20:07:34 +0000
commit5a7414f3caf6ad58ce98b5e62230a7cbb9ebcc6d (patch)
treee982036b55950668c5d0273ffe54f37a0f85f212 /libavfilter/avfiltergraph.c
parent6c66596eed3523f50e4a575527753cf0c345ee28 (diff)
Handle failure properly
Commited in SoC by Vitor Sessak on 2007-11-29 19:35:17 Originally committed as revision 12708 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r--libavfilter/avfiltergraph.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index 649355fb25..26f8280109 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -451,7 +451,12 @@ static AVFilterContext *create_filter_with_args(const char *filt, void *opaque)
avfilter_destroy(ret);
goto fail;
}
- } else av_log(NULL, AV_LOG_ERROR, "error creating filter!\n");
+ } else {
+ av_log(NULL, AV_LOG_ERROR,
+ "error creating filter \"%s\" with args \"%s\"\n",
+ name, args ? args : "(none)");
+ return NULL;
+ }
av_free(filter);