Revision 24de0edb

View differences:

doc/APIchanges
13 13

  
14 14
API changes, most recent first:
15 15

  
16
2010-11-08 - r25707 - lavfi 1.59.0 - avfilter_free()
17
  Rename avfilter_destroy() to avfilter_free().
18
  This change breaks libavfilter API/ABI.
19

  
16 20
2010-11-07 - r25705 - lavfi 1.58.0 - avfiltergraph.h
17 21
  Remove graphparser.h header, move AVFilterInOut and
18 22
  avfilter_graph_parse() declarations to libavfilter/avfiltergraph.h.
libavfilter/avfilter.c
527 527
    return 0;
528 528
}
529 529

  
530
void avfilter_destroy(AVFilterContext *filter)
530
void avfilter_free(AVFilterContext *filter)
531 531
{
532 532
    int i;
533 533
    AVFilterLink *link;
libavfilter/avfilter.h
25 25
#include "libavutil/avutil.h"
26 26

  
27 27
#define LIBAVFILTER_VERSION_MAJOR  1
28
#define LIBAVFILTER_VERSION_MINOR 58
28
#define LIBAVFILTER_VERSION_MINOR 59
29 29
#define LIBAVFILTER_VERSION_MICRO  0
30 30

  
31 31
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
......
786 786
int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque);
787 787

  
788 788
/**
789
 * Destroy a filter.
789
 * Free a filter context.
790 790
 *
791
 * @param filter the filter to destroy
791
 * @param filter the filter to free
792 792
 */
793
void avfilter_destroy(AVFilterContext *filter);
793
void avfilter_free(AVFilterContext *filter);
794 794

  
795 795
/**
796 796
 * Insert a filter in the middle of an existing link.
libavfilter/avfiltergraph.c
34 34
void avfilter_graph_free(AVFilterGraph *graph)
35 35
{
36 36
    for(; graph->filter_count > 0; graph->filter_count --)
37
        avfilter_destroy(graph->filters[graph->filter_count - 1]);
37
        avfilter_free(graph->filters[graph->filter_count - 1]);
38 38
    av_freep(&graph->scale_sws_opts);
39 39
    av_freep(&graph->filters);
40 40
}
......
143 143
                    snprintf(scale_args, sizeof(scale_args), "0:0:%s", graph->scale_sws_opts);
144 144
                    if(!scale || scale->filter->init(scale, scale_args, NULL) ||
145 145
                                 avfilter_insert_filter(link, scale, 0, 0)) {
146
                        avfilter_destroy(scale);
146
                        avfilter_free(scale);
147 147
                        return -1;
148 148
                    }
149 149

  
libavfilter/graphparser.c
118 118
    }
119 119

  
120 120
    if ((ret = avfilter_graph_add_filter(ctx, *filt_ctx)) < 0) {
121
        avfilter_destroy(*filt_ctx);
121
        avfilter_free(*filt_ctx);
122 122
        return ret;
123 123
    }
124 124

  
tools/lavfi-showfiltfmts.c
93 93
                   av_pix_fmt_descriptors[fmts->formats[j]].name);
94 94
    }
95 95

  
96
    avfilter_destroy(filter_ctx);
96
    avfilter_free(filter_ctx);
97 97
    fflush(stdout);
98 98
    return 0;
99 99
}

Also available in: Unified diff