mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-20 05:46:57 +00:00
Move destruction of the graph's filters to its own helper function.
Commited in SoC by Bobby Bingham on 2007-07-14 21:41:34 Originally committed as revision 12687 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
eccb6fb7ce
commit
ffcaef3485
@ -32,13 +32,18 @@ AVFilterGraph *avfilter_create_graph(void)
|
|||||||
return av_mallocz(sizeof(AVFilterGraph));
|
return av_mallocz(sizeof(AVFilterGraph));
|
||||||
}
|
}
|
||||||
|
|
||||||
void avfilter_destroy_graph(AVFilterGraph *graph)
|
static void destroy_graph_filters(AVFilterGraph *graph)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
for(i = 0; i < graph->filter_count; i ++)
|
for(i = 0; i < graph->filter_count; i ++)
|
||||||
avfilter_destroy(graph->filters[i]);
|
avfilter_destroy(graph->filters[i]);
|
||||||
av_free(graph->filters);
|
av_freep(&graph->filters);
|
||||||
|
}
|
||||||
|
|
||||||
|
void avfilter_destroy_graph(AVFilterGraph *graph)
|
||||||
|
{
|
||||||
|
destroy_graph_filters(graph);
|
||||||
av_free(graph);
|
av_free(graph);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user