diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 11:44:51 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 11:44:51 +0000 |
commit | 84c038696097e5d4951ba3ad180e1100d66c0947 (patch) | |
tree | 7fec9365ce84f2dfd64e287b38bb48eda0c41b1e /libavfilter/avfiltergraph.c | |
parent | ad0d70c964f852a18e9ab8124f0e7aa8876cac6e (diff) | |
download | ffmpeg-84c038696097e5d4951ba3ad180e1100d66c0947.tar.gz |
Change avfilter_open() signature, from:
AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name);
to:
int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name);
This way it is possible to propagate an error code telling the reason
of the failure.
Originally committed as revision 24765 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfiltergraph.c')
-rw-r--r-- | libavfilter/avfiltergraph.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index 6f219a62b5..2123c2806c 100644 --- a/libavfilter/avfiltergraph.c +++ b/libavfilter/avfiltergraph.c @@ -133,8 +133,7 @@ static int query_formats(AVFilterGraph *graph, AVClass *log_ctx) /* couldn't merge format lists. auto-insert scale filter */ snprintf(inst_name, sizeof(inst_name), "auto-inserted scaler %d", scaler_count++); - scale = - avfilter_open(avfilter_get_by_name("scale"),inst_name); + avfilter_open(&scale, avfilter_get_by_name("scale"), inst_name); snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts); if(!scale || scale->filter->init(scale, scale_args, NULL) || |