OSDN Git Service

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)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 6 Feb 2011 19:31:42 +0000 (20:31 +0100)
commitc68be8e135ddcd8a043142d26a5fdc4ef01b1218
treec66460ff5d3581037230934b50301fc745294a86
parent2d9fd1810bdf7ce9135aa39145b85a35a0ba3dac
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>
(cherry picked from commit e8e5dde779fca80d86e00baea26d1baca333f4c0)
libavfilter/graphparser.c