mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
lavfi/avfiltergraph: fix style
This commit is contained in:
parent
e1332ff324
commit
5c4c929878
@ -1081,24 +1081,24 @@ int avfilter_graph_send_command(AVFilterGraph *graph, const char *target, const
|
||||
{
|
||||
int i, r = AVERROR(ENOSYS);
|
||||
|
||||
if(!graph)
|
||||
if (!graph)
|
||||
return r;
|
||||
|
||||
if((flags & AVFILTER_CMD_FLAG_ONE) && !(flags & AVFILTER_CMD_FLAG_FAST)) {
|
||||
r=avfilter_graph_send_command(graph, target, cmd, arg, res, res_len, flags | AVFILTER_CMD_FLAG_FAST);
|
||||
if(r != AVERROR(ENOSYS))
|
||||
if ((flags & AVFILTER_CMD_FLAG_ONE) && !(flags & AVFILTER_CMD_FLAG_FAST)) {
|
||||
r = avfilter_graph_send_command(graph, target, cmd, arg, res, res_len, flags | AVFILTER_CMD_FLAG_FAST);
|
||||
if (r != AVERROR(ENOSYS))
|
||||
return r;
|
||||
}
|
||||
|
||||
if(res_len && res)
|
||||
res[0]= 0;
|
||||
if (res_len && res)
|
||||
res[0] = 0;
|
||||
|
||||
for (i = 0; i < graph->nb_filters; i++) {
|
||||
AVFilterContext *filter = graph->filters[i];
|
||||
if(!strcmp(target, "all") || (filter->name && !strcmp(target, filter->name)) || !strcmp(target, filter->filter->name)){
|
||||
if (!strcmp(target, "all") || (filter->name && !strcmp(target, filter->name)) || !strcmp(target, filter->filter->name)) {
|
||||
r = avfilter_process_command(filter, cmd, arg, res, res_len, flags);
|
||||
if(r != AVERROR(ENOSYS)) {
|
||||
if((flags & AVFILTER_CMD_FLAG_ONE) || r<0)
|
||||
if (r != AVERROR(ENOSYS)) {
|
||||
if ((flags & AVFILTER_CMD_FLAG_ONE) || r < 0)
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user