Commit 37161d64 authored by Vitor Sessak's avatar Vitor Sessak

Rename AVFilterInOut.instance to AVFilterInOut.filter

Commited in SoC by Vitor Sessak on 2008-04-06 18:45:08

Originally committed as revision 13295 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent da790674
...@@ -188,7 +188,7 @@ enum LinkType { ...@@ -188,7 +188,7 @@ enum LinkType {
typedef struct AVFilterInOut { typedef struct AVFilterInOut {
enum LinkType type; enum LinkType type;
char *name; char *name;
AVFilterContext *instance; AVFilterContext *filter;
int pad_idx; int pad_idx;
struct AVFilterInOut *next; struct AVFilterInOut *next;
...@@ -208,14 +208,14 @@ static void free_inout(AVFilterInOut *head) ...@@ -208,14 +208,14 @@ static void free_inout(AVFilterInOut *head)
* Parse "(a1)(link2) ... (etc)" * Parse "(a1)(link2) ... (etc)"
*/ */
static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad, static int parse_inouts(const char **buf, AVFilterInOut **inout, int firstpad,
enum LinkType type, AVFilterContext *instance) enum LinkType type, AVFilterContext *filter)
{ {
int pad = firstpad; int pad = firstpad;
while (**buf == '(') { while (**buf == '(') {
AVFilterInOut *inoutn = av_malloc(sizeof(AVFilterInOut)); AVFilterInOut *inoutn = av_malloc(sizeof(AVFilterInOut));
parse_link_name(buf, &inoutn->name); parse_link_name(buf, &inoutn->name);
inoutn->type = type; inoutn->type = type;
inoutn->instance = instance; inoutn->filter = filter;
inoutn->pad_idx = pad++; inoutn->pad_idx = pad++;
inoutn->next = *inout; inoutn->next = *inout;
*inout = inoutn; *inout = inoutn;
...@@ -284,17 +284,17 @@ int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilt ...@@ -284,17 +284,17 @@ int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilt
head = inout; head = inout;
for (; inout != NULL; inout = inout->next) { for (; inout != NULL; inout = inout->next) {
if (inout->instance == NULL) if (inout->filter == NULL)
continue; // Already processed continue; // Already processed
if (!strcmp(inout->name, "in")) { if (!strcmp(inout->name, "in")) {
if(link_filter(in, inpad, inout->instance, inout->pad_idx)) if(link_filter(in, inpad, inout->filter, inout->pad_idx))
goto fail; goto fail;
} else if (!strcmp(inout->name, "out")) { } else if (!strcmp(inout->name, "out")) {
has_out = 1; has_out = 1;
if(link_filter(inout->instance, inout->pad_idx, out, outpad)) if(link_filter(inout->filter, inout->pad_idx, out, outpad))
goto fail; goto fail;
} else { } else {
...@@ -320,11 +320,11 @@ int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilt ...@@ -320,11 +320,11 @@ int avfilter_graph_parse_chain(AVFilterGraph *graph, const char *filters, AVFilt
goto fail; goto fail;
} }
if (link_filter(src->instance, src->pad_idx, dst->instance, dst->pad_idx) < 0) if (link_filter(src->filter, src->pad_idx, dst->filter, dst->pad_idx) < 0)
goto fail; goto fail;
src->instance = NULL; src->filter = NULL;
dst->instance = NULL; dst->filter = NULL;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment