Make avfilter_graph_parse() not free the input graph
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 1 Feb 2011 20:52:07 +0000 (21:52 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 4 Feb 2011 02:55:11 +0000 (02:55 +0000)
commite8e5dde779fca80d86e00baea26d1baca333f4c0
treed84ac150329f03f6d67fa69b55c4435ff894fb08
parente6fb5a4f78a67ed815e39ba8ac3893fd631b9b1a
Make avfilter_graph_parse() not free the input graph

Make avfilter_graph_parse() only release the internal structures
allocated during the parsing, and leave to free the graph itself to
the calling code.

This approach looks cleaner, as the graph is not allocated by the
function.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavfilter/graphparser.c