diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 15:44:51 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-08-11 15:44:51 +0400 |
commit | 84c038696097e5d4951ba3ad180e1100d66c0947 (patch) | |
tree | 7fec9365ce84f2dfd64e287b38bb48eda0c41b1e /ffplay.c | |
parent | ad0d70c964f852a18e9ab8124f0e7aa8876cac6e (diff) |
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 'ffplay.c')
-rw-r--r-- | ffplay.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1790,8 +1790,8 @@ static int video_thread(void *arg) snprintf(sws_flags_str, sizeof(sws_flags_str), "flags=%d", sws_flags); graph->scale_sws_opts = av_strdup(sws_flags_str); - if(!(filt_src = avfilter_open(&input_filter, "src"))) goto the_end; - if(!(filt_out = avfilter_open(&output_filter, "out"))) goto the_end; + if (avfilter_open(&filt_src, &input_filter, "src") < 0) goto the_end; + if (avfilter_open(&filt_out, &output_filter, "out") < 0) goto the_end; if(avfilter_init_filter(filt_src, NULL, is)) goto the_end; if(avfilter_init_filter(filt_out, NULL, frame)) goto the_end; |